Silence unread buffer assertion on incompatible protocol

This commit is contained in:
Dylan K. Taylor 2017-02-01 18:13:50 +00:00
parent 28baae8154
commit cf83143bbd

View File

@ -44,6 +44,7 @@ class LoginPacket extends DataPacket{
$this->protocol = $this->getInt();
if($this->protocol !== Info::CURRENT_PROTOCOL){
$this->buffer = null;
return; //Do not attempt to decode for non-accepted protocols
}