/** * Closes all connections _without_ queueing a reconnect. */ public void Close() { DebugLogger.Global.WriteMessage("Disconnecting from rift."); // Already closed, don't error but just ignore. if (hubConnectionHandler == null) { return; } // Clear entries. hubConnectionHandler.Close(); league.ClearAllListeners(); hubConnectionHandler = null; reconnectCancellationTokenSource = null; }
/** * Closes all connections _without_ queueing a reconnect. */ public void Close() { DebugLogger.Global.WriteMessage("Disconnecting from rift."); league.ClearAllListeners(); }