diff --git a/src/vennv/vapm/Thread.php b/src/vennv/vapm/Thread.php index 7e5ecb31..ed764d0c 100644 --- a/src/vennv/vapm/Thread.php +++ b/src/vennv/vapm/Thread.php @@ -477,14 +477,12 @@ public function start(array $mode = DescriptorSpec::BASIC): Promise fclose($pipes[1]); fclose($pipes[2]); - if ($error !== '' && is_string($error)) { + if ($error !== '') { return $reject(new ThreadException($error)); } else { - if (!is_bool($output)) { - if ($output !== '' && self::isPostMainThread($output)) self::loadSharedData($output); - elseif ($output !== '' && self::isPostThread($output)) { - $output = Utils::getStringAfterSign($output, self::POST_THREAD . '=>'); - } + if ($output !== '' && self::isPostMainThread($output)) self::loadSharedData($output); + elseif ($output !== '' && self::isPostThread($output)) { + $output = Utils::getStringAfterSign($output, self::POST_THREAD . '=>'); } } } else {