Skip to content

Commit

Permalink
[fix] sign close
Browse files Browse the repository at this point in the history
  • Loading branch information
telanflow committed Oct 24, 2019
1 parent b12a719 commit 51d4a7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Server/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ public function run()
$this->consume();
} catch (EventBinaryDataException $e) {}
}

$this->client->close();
}

/**
Expand All @@ -100,8 +98,10 @@ public function signalHandler($signal)
case SIGUSR1:
case SIGUSR2:
case SIGTERM:
file_put_contents(Configure::getPosFile(), $pidFileContent);
$this->exit = true;
$this->client->close();
file_put_contents(Configure::getPosFile(), $pidFileContent);
exit(0);
}
}

Expand Down

0 comments on commit 51d4a7f

Please sign in to comment.