This commit is contained in:
Daniil Gentili 2019-12-28 00:18:12 +01:00
parent be46eb5d13
commit c77e47a8c5
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 2 deletions

View File

@ -660,7 +660,7 @@ trait AuthKeyHandler
} }
continue; continue;
} }
if (isset($this->init_auth_dcs[$id])) { if (isset($this->init_auth_dcs[$id]) || !$socket->hasConnection(0)) {
$this->pending_auth = true; $this->pending_auth = true;
continue; continue;
} }

View File

@ -51,7 +51,7 @@ trait Loop
*/ */
public function loop($callback = null) public function loop($callback = null)
{ {
if (\is_callable($max_fcallbackorks)) { if (\is_callable($callback)) {
$this->logger->logger('Running async callable'); $this->logger->logger('Running async callable');
return yield $callback(); return yield $callback();