File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -477,14 +477,12 @@ public function start(array $mode = DescriptorSpec::BASIC): Promise
477477 fclose ($ pipes [1 ]);
478478 fclose ($ pipes [2 ]);
479479
480- if ($ error !== '' && is_string ( $ error ) ) {
480+ if ($ error !== '' ) {
481481 return $ reject (new ThreadException ($ error ));
482482 } else {
483- if (!is_bool ($ output )) {
484- if ($ output !== '' && self ::isPostMainThread ($ output )) self ::loadSharedData ($ output );
485- elseif ($ output !== '' && self ::isPostThread ($ output )) {
486- $ output = Utils::getStringAfterSign ($ output , self ::POST_THREAD . '=> ' );
487- }
483+ if ($ output !== '' && self ::isPostMainThread ($ output )) self ::loadSharedData ($ output );
484+ elseif ($ output !== '' && self ::isPostThread ($ output )) {
485+ $ output = Utils::getStringAfterSign ($ output , self ::POST_THREAD . '=> ' );
488486 }
489487 }
490488 } else {
You can’t perform that action at this time.
0 commit comments