[Modify] Add a null check

This commit is contained in:
sta 2021-05-13 19:44:02 +09:00
parent df30241fe3
commit 967097ea9a

View File

@ -246,6 +246,9 @@ namespace WebSocketSharp.Net
internal void Unregister ()
{
if (_listener == null)
return;
_listener.UnregisterContext (this);
}