mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Server: avoid abusing Throwable in a couple of places
This commit is contained in:
parent
7b3653f75d
commit
d8d22efc3b
@ -1541,7 +1541,7 @@ class Server{
|
||||
$this->getIp(),
|
||||
$this->getConfigInt("rcon.max-clients", 50)
|
||||
);
|
||||
}catch(\Throwable $e){
|
||||
}catch(\Exception $e){
|
||||
$this->getLogger()->critical("RCON can't be started: " . $e->getMessage());
|
||||
}
|
||||
}
|
||||
@ -2108,7 +2108,7 @@ class Server{
|
||||
$this->logger->info("[UPnP] Trying to port forward...");
|
||||
try{
|
||||
UPnP::PortForward($this->getPort());
|
||||
}catch(\Throwable $e){
|
||||
}catch(\Exception $e){
|
||||
$this->logger->alert("UPnP portforward failed: " . $e->getMessage());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user