protected void OnClientStopped(object sender, NetStreamStoppedEventArgs e) { if (this.OnClientDisconnected != null) { this.OnClientDisconnected(this, new NetClientDisconnectedEventArgs(e.Guid, e.Reason)); } this.clients.Remove(e.Guid); this.streams.Remove(e.Guid); }
protected void stream_OnStopped(object sender, NetStreamStoppedEventArgs e) { this.Disconnect(e.Reason); }