mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
TimingsCommand: check for instances of InternetException only
This commit is contained in:
parent
f3f229ef7c
commit
12d8d925c8
@ -30,6 +30,7 @@ use pocketmine\Player;
|
|||||||
use pocketmine\scheduler\BulkCurlTask;
|
use pocketmine\scheduler\BulkCurlTask;
|
||||||
use pocketmine\Server;
|
use pocketmine\Server;
|
||||||
use pocketmine\timings\TimingsHandler;
|
use pocketmine\timings\TimingsHandler;
|
||||||
|
use pocketmine\utils\InternetException;
|
||||||
|
|
||||||
class TimingsCommand extends VanillaCommand{
|
class TimingsCommand extends VanillaCommand{
|
||||||
|
|
||||||
@ -131,7 +132,7 @@ class TimingsCommand extends VanillaCommand{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$result = $this->getResult()[0];
|
$result = $this->getResult()[0];
|
||||||
if($result instanceof \RuntimeException){
|
if($result instanceof InternetException){
|
||||||
$server->getLogger()->logException($result);
|
$server->getLogger()->logException($result);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user