/// <summary> /// Saves and then removes Character /// </summary> /// <remarks>Requires map context for synchronization.</remarks> internal void FinishLogout() { RealmServer.IOQueue.AddMessage(new Message(() => { Record.LastLogout = DateTime.Now; SaveNow(); var handler = ContextHandler; if (handler != null) { ContextHandler.AddMessage(() => DoFinishLogout()); } else { DoFinishLogout(); } })); }