File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,17 +85,18 @@ public function wait(PromiseCore $targetCore = null): void
85
85
{
86
86
do {
87
87
$ status = curl_multi_exec ($ this ->multiHandle , $ active );
88
+ curl_multi_select ($ this ->multiHandle , 0.1 );
88
89
$ info = curl_multi_info_read ($ this ->multiHandle );
89
- if (false !== $ info ) {
90
+ if ($ info !== false ) {
90
91
$ core = $ this ->findCoreByHandle ($ info ['handle ' ]);
91
92
92
- if (null === $ core ) {
93
+ if ($ core === null ) {
93
94
// We have no promise for this handle. Drop it.
94
95
curl_multi_remove_handle ($ this ->multiHandle , $ info ['handle ' ]);
95
96
continue ;
96
97
}
97
98
98
- if (CURLE_OK === $ info ['result ' ]) {
99
+ if ($ info ['result ' ] === CURLE_OK ) {
99
100
$ core ->fulfill ();
100
101
} else {
101
102
$ error = curl_error ($ core ->getHandle ());
You can’t perform that action at this time.
0 commit comments