Use constant for gracefully shutdown value

This commit is contained in:
2021-01-20 18:38:48 +03:00
parent 46f0e8bea5
commit c7970f9902
2 changed files with 5 additions and 3 deletions

View File

@ -87,7 +87,7 @@ foreach ($generator as $envelope) {
}
if ($stopSignalReceived) {
$generator->send(true); // Gracefully close connection
$generator->send(Subscriber::STOP); // Gracefully close connection
}
}
```