mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-25 12:54:03 +00:00
Network: Don't ignore retval of raw handlers
This commit is contained in:
parent
d0940e4be2
commit
97ccc6e880
@ -237,9 +237,8 @@ class Network{
|
|||||||
$handled = false;
|
$handled = false;
|
||||||
foreach($this->rawPacketHandlers as $handler){
|
foreach($this->rawPacketHandlers as $handler){
|
||||||
if(preg_match($handler->getPattern(), $packet) === 1){
|
if(preg_match($handler->getPattern(), $packet) === 1){
|
||||||
$handled = true;
|
|
||||||
try{
|
try{
|
||||||
$handler->handle($interface, $address, $port, $packet);
|
$handled = $handler->handle($interface, $address, $port, $packet);
|
||||||
}catch(BadPacketException $e){
|
}catch(BadPacketException $e){
|
||||||
$this->logger->error("Bad raw packet from /$address:$port: " . $e->getMessage());
|
$this->logger->error("Bad raw packet from /$address:$port: " . $e->getMessage());
|
||||||
$this->blockAddress($address, 600);
|
$this->blockAddress($address, 600);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user