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
8585 {
8686 do {
8787 $ status = curl_multi_exec ($ this ->multiHandle , $ active );
88+ curl_multi_select ($ this ->multiHandle , 0.1 );
8889 $ info = curl_multi_info_read ($ this ->multiHandle );
89- if (false !== $ info ) {
90+ if ($ info !== false ) {
9091 $ core = $ this ->findCoreByHandle ($ info ['handle ' ]);
9192
92- if (null === $ core ) {
93+ if ($ core === null ) {
9394 // We have no promise for this handle. Drop it.
9495 curl_multi_remove_handle ($ this ->multiHandle , $ info ['handle ' ]);
9596 continue ;
9697 }
9798
98- if (CURLE_OK === $ info ['result ' ]) {
99+ if ($ info ['result ' ] === CURLE_OK ) {
99100 $ core ->fulfill ();
100101 } else {
101102 $ error = curl_error ($ core ->getHandle ());
You can’t perform that action at this time.
0 commit comments