1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 13:54:39 +01:00
This commit is contained in:
Daniil Gentili 2018-05-08 19:11:02 +00:00
commit f53695316c

View File

@ -53,7 +53,7 @@ class Server
$timeout = 2; $timeout = 2;
$this->sock->setOption(\SOL_SOCKET, \SO_RCVTIMEO, $timeout); $this->sock->setOption(\SOL_SOCKET, \SO_RCVTIMEO, $timeout);
$this->sock->setOption(\SOL_SOCKET, \SO_SNDTIMEO, $timeout); $this->sock->setOption(\SOL_SOCKET, \SO_SNDTIMEO, $timeout);
\danog\MadelineProto\Logger::log("Server started! Listening on ".$this->settings['address'].":".$this->settings['port']); \danog\MadelineProto\Logger::log('Server started! Listening on '.$this->settings['address'].':'.$this->settings['port']);
while (true) { while (true) {
pcntl_signal_dispatch(); pcntl_signal_dispatch();