[smuxi] Frontend-GNOME: use Session.Shutdown() in Frontend.Quit()



commit f66aff53d6a19761478d607ed6dda54754d27184
Author: Mirco Bauer <meebey meebey net>
Date:   Sun Feb 23 18:43:02 2014 +0100

    Frontend-GNOME: use Session.Shutdown() in Frontend.Quit()

 src/Frontend-GNOME/Frontend.cs |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/Frontend-GNOME/Frontend.cs b/src/Frontend-GNOME/Frontend.cs
index 97e728e..d4575e7 100644
--- a/src/Frontend-GNOME/Frontend.cs
+++ b/src/Frontend-GNOME/Frontend.cs
@@ -498,12 +498,8 @@ namespace Smuxi.Frontend.Gnome
             if (_FrontendManager != null) {
                 if (IsLocalEngine) {
                     try {
-                        // dispose (possibly flush) all protocol managers / chats
-                        lock (Session.ProtocolManagers) {
-                            foreach (var protocolManager in Session.ProtocolManagers) {
-                                protocolManager.Dispose();
-                            }
-                        }
+                        // shutdown session (flush message buffers)
+                        Session.Shutdown();
                     } catch (Exception ex) {
 #if LOG4NET
                         _Logger.Error("Quit(): Exception", ex);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]