File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
vendor/fkubis/teamspeak-php-framework/TeamSpeak3/Transport Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function connect()
65
65
}
66
66
67
67
@stream_set_timeout ($ this ->stream , $ timeout );
68
- @stream_set_blocking ($ this ->stream , $ this ->config ["blocking " ] ? 1 : 0 );
68
+ @stream_set_blocking ($ this ->stream , $ this ->config ["blocking " ] ? true : false );
69
69
}
70
70
71
71
/**
@@ -98,6 +98,7 @@ public function read($length = 4096)
98
98
99
99
$ data = @stream_get_contents ($ this ->stream , $ length );
100
100
101
+
101
102
Signal::getInstance ()->emit (strtolower ($ this ->getAdapterType ()) . "DataRead " , $ data );
102
103
103
104
if ($ data === false ) {
@@ -133,9 +134,7 @@ public function readLine($token = "\n")
133
134
if ($ line ->count ()) {
134
135
$ line ->append ($ token );
135
136
} else {
136
- throw new Ts3Exception (
137
- "connection to server ' " . $ this ->config ["host " ] . ": " . $ this ->config ["port " ] . "' lost "
138
- );
137
+ throw new Ts3Exception ("connection to server ' " . $ this ->config ["host " ] . ": " . $ this ->config ["port " ] . "' lost " );
139
138
}
140
139
} else {
141
140
$ line ->append ($ data );
You can’t perform that action at this time.
0 commit comments