Merge pull request #1541 from altaroca/zmonvif-probe-1397
zmonvif-probe: Set $transport->message to prevent undef error
This commit is contained in:
commit
9dd5e34dc8
|
@ -145,17 +145,18 @@ sub send_receive {
|
||||||
}
|
}
|
||||||
|
|
||||||
if($last_response) {
|
if($last_response) {
|
||||||
$self->code();
|
$self->set_code();
|
||||||
$self->message();
|
$self->set_message("");
|
||||||
$self->is_success(1);
|
$self->set_is_success(1);
|
||||||
$self->status('OK');
|
$self->set_status('OK');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$self->code();
|
$self->set_code();
|
||||||
$self->message();
|
$self->set_message("Timed out waiting for response");
|
||||||
$self->is_success(0);
|
$self->set_is_success(0);
|
||||||
$self->status('TIMEOUT');
|
$self->set_status('TIMEOUT');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $last_response;
|
return $last_response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue