f i x i n g a t 3 a m

This commit is contained in:
Daniil Gentili 2019-05-11 01:10:18 +00:00
parent 8c59efbd96
commit 1cb0378a16

View File

@ -251,9 +251,9 @@ class CombinedAPI
} }
$instance->setCallback(function ($update) use ($path) { $instance->setCallback(function ($update) use ($path) {
return $this->event_update_handler($update, $path); return $this->event_update_handler($update, $path);
}); }, ['async' => false]);
if ($this->loop_callback !== null) { if ($this->loop_callback !== null) {
$instance->setLoopCallback($this->loop_callback); $instance->setLoopCallback($this->loop_callback, ['async' => false]);
} }
$loops[] = $this->call($instance->loop(0, ['async' => true])); $loops[] = $this->call($instance->loop(0, ['async' => true]));
} }