Skip to content

Commit 0bcc42c

Browse files
authored
Fix Server Manager
`SwooleTaskJob` has a `fire()` method, not a `dispatch()` method.
1 parent f3a50c7 commit 0bcc42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function onTask($server, $taskId, $srcWorkerId, $data)
271271
$this->pushMessage($server, $data['data']);
272272
// push async task to queue
273273
} elseif ($this->isAsyncTaskPayload($data)) {
274-
(new SwooleTaskJob($this->container, $server, $data, $taskId, $srcWorkerId))->dispatch();
274+
(new SwooleTaskJob($this->container, $server, $data, $taskId, $srcWorkerId))->fire();
275275
}
276276
} catch (Throwable $e) {
277277
$this->logServerError($e);

0 commit comments

Comments
 (0)