private void OnDisconnectComplete(SocketAsyncEventArgs e) { if (this.socket == null) { return; } if (this.OnDisconnect == null) { return; } this.OnDisconnect(e.SocketError); } }