mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Removed usleep command (#6468)
* Removed usleep command * Update event_socket.php
This commit is contained in:
@@ -72,7 +72,6 @@ class event_socket {
|
||||
$kv = explode(':', $line, 2);
|
||||
$content[trim($kv[0])] = trim($kv[1]);
|
||||
}
|
||||
usleep(1000);
|
||||
|
||||
if (feof($this->fp)) {
|
||||
break;
|
||||
@@ -113,8 +112,9 @@ class event_socket {
|
||||
if (!$fp) {
|
||||
return false;
|
||||
}
|
||||
|
||||
socket_set_blocking($fp, false);
|
||||
|
||||
socket_set_timeout($fp, 0, 1000);
|
||||
socket_set_blocking($fp, true);
|
||||
$this->fp = $fp;
|
||||
|
||||
// Wait auth request and send response
|
||||
|
||||
Reference in New Issue
Block a user