Example #1
0
        public override void Leave()
        {
            Log.WriteInfo("Gaminglive leaving {0}", ChannelName);

            if (pingTimer != null)
            {
                pingTimer.Change(Timeout.Infinite, Timeout.Infinite);
                pingTimer = null;
            }

            if (disconnectTimer != null)
            {
                disconnectTimer.Change(Timeout.Infinite, Timeout.Infinite);
                disconnectTimer = null;
            }

            if (statsPoller != null)
            {
                statsPoller.Stop();
            }

            if (webSocket != null && !webSocket.IsClosed)
            {
                webSocket.Disconnect();
            }
        }
        public override void Leave()
        {
            //Disconnect channel
            if (pingTimer != null)
            {
                pingTimer.Change(Timeout.Infinite, Timeout.Infinite);
            }

            if (disconnectTimer != null)
            {
                disconnectTimer.Change(Timeout.Infinite, Timeout.Infinite);
            }

            pingTimer       = null;
            disconnectTimer = null;

            if (webSocket != null)
            {
                webSocket.Disconnect();
            }

            if (statsPoller != null)
            {
                statsPoller.Stop();
            }

            webSocket = null;

            if (LeaveCallback != null)
            {
                LeaveCallback(this);
            }
        }
Example #3
0
 public override void Leave()
 {
     Log.WriteInfo("Cybergame leaving {0}", ChannelName);
     if (webSocket != null && !webSocket.IsClosed)
     {
         webSocket.Disconnect();
     }
 }
Example #4
0
        public bool Stop()
        {
            lock ( startStopLock )
            {
                Log.WriteInfo("Stopping OBSRemote service");

                if (Status.IsInProgress)
                {
                    return(false);
                }

                Status.IsStopping = true;
                if (!obsRemoteWebSocket.IsClosed)
                {
                    obsRemoteWebSocket.Disconnect();
                }

                Status.ResetToDefault();

                return(true);
            }
        }
Example #5
0
        public override void Leave()
        {
            Log.WriteInfo("Hitbox leaving {0}", ChannelName);
            if (webSocket != null && !webSocket.IsClosed)
            {
                webSocket.Disconnect();
            }

            if (timerEveryMinute != null)
            {
                timerEveryMinute.Change(Timeout.Infinite, Timeout.Infinite);
            }

            if (statsPoller != null)
            {
                statsPoller.Stop();
            }
        }
Example #6
0
        public override void Leave()
        {
            //Log.WriteInfo("Goodgame.ru leaving {0}", ChannelName);

            if (timer != null)
            {
                timer.Change(Timeout.Infinite, Timeout.Infinite);
            }

            if (disconnectTimer != null)
            {
                disconnectTimer.Change(Timeout.Infinite, Timeout.Infinite);
            }

            if (webSocket != null && !webSocket.IsClosed)
            {
                webSocket.Disconnect();
            }
        }