WebRTC_Sample.SessionForm.mConnection_OnDisconnected C# (CSharp) Method

mConnection_OnDisconnected() private method

private mConnection_OnDisconnected ( WebRTCConnection sender ) : void
sender WebRTCConnection
return void
        async void mConnection_OnDisconnected(WebRTCConnection sender)
        {
            mConnected = false;
            mConnection = null;
            if (!closing)
            {
                await this.ContextSwitchToMessagePumpAsync(); // Switch to UI Thread so we can modify the UI
                Close();
            }
        }