exception handling on multicalls
This commit is contained in:
parent
7de138dccf
commit
b4664b2b6e
@ -7,7 +7,9 @@ use ManiaControl\General\UsageInformationAble;
|
||||
use ManiaControl\General\UsageInformationTrait;
|
||||
use ManiaControl\Logger;
|
||||
use ManiaControl\ManiaControl;
|
||||
use Maniaplanet\DedicatedServer\Xmlrpc\FaultException;
|
||||
use Maniaplanet\DedicatedServer\Xmlrpc\ParseException;
|
||||
use Maniaplanet\DedicatedServer\Xmlrpc\UnknownPlayerException;
|
||||
|
||||
/**
|
||||
* Class for managing Server and ManiaControl Callbacks
|
||||
@ -253,7 +255,13 @@ class CallbackManager implements UsageInformationAble {
|
||||
}
|
||||
|
||||
//Execute Multicalls
|
||||
$this->maniaControl->getClient()->executeMulticall();
|
||||
try {
|
||||
$this->maniaControl->getClient()->executeMulticall();
|
||||
} catch (UnknownPlayerException $e) {
|
||||
} catch (FaultException $e) {
|
||||
$this->maniaControl->getErrorHandler()->triggerDebugNotice("Exception while executing Multicalls " . $e->getMessage());
|
||||
}
|
||||
|
||||
|
||||
$fullTime = microtime(true) - $startTime;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user