mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +00:00
follow up of #6110
This commit is contained in:
parent
823d4ead6a
commit
243a3035ba
@ -79,7 +79,7 @@ final class AsyncEventDelegate{
|
||||
$priorities = EventPriority::ALL;
|
||||
$testResolve = function () use (&$testResolve, &$priorities, $globalResolver){
|
||||
if(count($priorities) === 0){
|
||||
$globalResolver->resolve(""); // TODO: see #6110
|
||||
$globalResolver->resolve(null);
|
||||
}else{
|
||||
$this->callPriority(array_shift($priorities))->onCompletion(function() use ($testResolve) : void{
|
||||
$testResolve();
|
||||
@ -119,7 +119,7 @@ final class AsyncEventDelegate{
|
||||
$testResolve = function() use (&$nonConcurrentHandlers, &$testResolve, $resolver){
|
||||
if(count($nonConcurrentHandlers) === 0){
|
||||
$this->waitForPromises()->onCompletion(function() use ($resolver){
|
||||
$resolver->resolve(""); // TODO: see #6110
|
||||
$resolver->resolve(null);
|
||||
}, function() use ($resolver){
|
||||
$resolver->reject();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user