summaryrefslogtreecommitdiff
path: root/tests/stop.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stop.php')
-rw-r--r--tests/stop.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stop.php b/tests/stop.php
index 0100ad0f..f83d3f29 100644
--- a/tests/stop.php
+++ b/tests/stop.php
@@ -9,7 +9,7 @@ use Spiral\RoadRunner;
$rr = new RoadRunner\Worker($relay);
$used = false;
-while ($in = $rr->receive($ctx)) {
+while ($in = $rr->waitPayload()) {
try {
if ($used) {
// kill on second attempt