mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 09:20:51 +01:00
initialize DisconnectReason to 0
This commit is contained in:
parent
58a76cd0e3
commit
f4527d627f
@ -15,6 +15,8 @@ export class DisconnectReasonParser implements IMessageParser
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._reason = 0;
|
||||
|
||||
if(wrapper.bytesAvailable)
|
||||
{
|
||||
this._reason = wrapper.readInt();
|
||||
|
Loading…
Reference in New Issue
Block a user