Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Signal receiving bugfix
Browse files Browse the repository at this point in the history
Fixes an error in signal receiving and not ending up with BNET_MAIN_PROMPT (-18).
  • Loading branch information
fbergkemper committed May 19, 2015
1 parent 279fc3a commit a357045
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vendor/Bareos/library/Bareos/BSock/BareosBSock.php
Expand Up @@ -273,7 +273,6 @@ private function receive_message()
if ($len == 0) {
break;
}

if ($len > 0 && $len < 8192) {
$msg .= fread($this->socket, $len);
} elseif($len > 8192) {
Expand All @@ -285,7 +284,6 @@ private function receive_message()
$rlen = $len;
}
}
break;
} elseif ($len < 0) {
// signal received
switch ($len) {
Expand Down Expand Up @@ -834,6 +832,7 @@ private function cram_md5_challenge($password)
public function send_command($cmd, $api=0)
{
$result = "";
$debug = "";

switch($api) {
case 2:
Expand Down

0 comments on commit a357045

Please sign in to comment.