initialize DisconnectReason to 0

This commit is contained in:
dank074 2022-12-26 16:55:41 -06:00
parent 58a76cd0e3
commit f4527d627f

View File

@ -15,6 +15,8 @@ export class DisconnectReasonParser implements IMessageParser
{
if(!wrapper) return false;
this._reason = 0;
if(wrapper.bytesAvailable)
{
this._reason = wrapper.readInt();