mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Replaced array() with []
This commit is contained in:
@ -85,7 +85,7 @@ class RCONInstance extends \Thread{
|
||||
|
||||
while($this->stop !== true){
|
||||
usleep(2000);
|
||||
$r = array($socket = $this->socket);
|
||||
$r = [$socket = $this->socket];
|
||||
$w = null;
|
||||
$e = null;
|
||||
if(socket_select($r, $w, $e, 0) === 1){
|
||||
@ -163,7 +163,7 @@ class RCONInstance extends \Thread{
|
||||
}
|
||||
usleep(1);
|
||||
}else{
|
||||
@socket_set_option($client, SOL_SOCKET, SO_LINGER, array("l_onoff" => 1, "l_linger" => 1));
|
||||
@socket_set_option($client, SOL_SOCKET, SO_LINGER, ["l_onoff" => 1, "l_linger" => 1]);
|
||||
@socket_shutdown($client, 2);
|
||||
@socket_set_block($client);
|
||||
@socket_read($client, 1);
|
||||
|
Reference in New Issue
Block a user