TimingsCommand: check for instances of InternetException only

This commit is contained in:
Dylan K. Taylor 2018-08-04 14:59:31 +01:00
parent f3f229ef7c
commit 12d8d925c8

View File

@ -30,6 +30,7 @@ use pocketmine\Player;
use pocketmine\scheduler\BulkCurlTask;
use pocketmine\Server;
use pocketmine\timings\TimingsHandler;
use pocketmine\utils\InternetException;
class TimingsCommand extends VanillaCommand{
@ -131,7 +132,7 @@ class TimingsCommand extends VanillaCommand{
return;
}
$result = $this->getResult()[0];
if($result instanceof \RuntimeException){
if($result instanceof InternetException){
$server->getLogger()->logException($result);
return;
}