Finally fix CTRL-C

This commit is contained in:
Daniil Gentili 2019-09-03 17:55:44 +02:00
parent 105ffb443a
commit 59e00e8ba9
2 changed files with 43 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@ -216,7 +216,7 @@ trait Tools
} catch (\Throwable $throwable) {
throw new \Error('Loop exceptionally stopped without resolving the promise', 0, $throwable);
}
} while (!$resolved);
} while (!$resolved && !Magic::$signaled);
if ($exception) {
throw $exception;