mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 04:35:12 +01:00
Avoid race condition
This commit is contained in:
parent
eaa5e30bf1
commit
a2dc87cb7e
@ -118,7 +118,11 @@ abstract class ClientAbstract
|
||||
}
|
||||
if ($this instanceof Client) {
|
||||
Server::startMe($this->session);
|
||||
$this->server = yield connect($this->session->getIpcPath());
|
||||
try {
|
||||
$this->server = yield connect($this->session->getIpcPath());
|
||||
} catch (\Throwable $e) {
|
||||
Logger::log("Got exception while reconnecting in IPC client: $e");
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user