inconsistency correction

This commit is contained in:
ShockedPlot7560 2023-10-27 22:12:03 +02:00
parent ca95b2f28d
commit 823d4ead6a
No known key found for this signature in database
GPG Key ID: D7539B420F1FA86E

View File

@ -39,7 +39,7 @@ class RegisteredAsyncListener extends RegisteredListener{
int $priority,
Plugin $plugin,
bool $handleCancelled,
private bool $noConcurrentCall,
private bool $exclusiveCall,
TimingsHandler $timings
){
$handler = function(AsyncEvent&Event $event) use($handler) : void{
@ -52,7 +52,7 @@ class RegisteredAsyncListener extends RegisteredListener{
}
public function canBeCalledConcurrently() : bool{
return !$this->noConcurrentCall;
return !$this->exclusiveCall;
}
/**