[gnome-code-assistance] [backends/rbcommon] Properly exit



commit cdc34132ec711c3965e1c88bde5564e219452c58
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Fri Nov 15 12:40:53 2013 +0100

    [backends/rbcommon] Properly exit

 .../gnome/codeassistance/transport/dbus.rb         |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/backends/rbcommon/gnome/codeassistance/transport/dbus.rb 
b/backends/rbcommon/gnome/codeassistance/transport/dbus.rb
index 187cc98..a2c20c5 100644
--- a/backends/rbcommon/gnome/codeassistance/transport/dbus.rb
+++ b/backends/rbcommon/gnome/codeassistance/transport/dbus.rb
@@ -296,7 +296,7 @@ module Gnome::CodeAssistance
             @apps.delete(app.name)
 
             if @apps.empty?
-                exit(0)
+                @main.quit
             end
         end
 
@@ -309,6 +309,12 @@ module Gnome::CodeAssistance
             @sender = msg.sender
             super(msg)
         end
+
+        def run
+            @main = ::DBus::Main.new
+            @main << ::DBus::SessionBus.instance
+            @main.run
+        end
     end
 
     class Transport
@@ -329,9 +335,7 @@ module Gnome::CodeAssistance
         end
 
         def run
-            main = ::DBus::Main.new
-            main << ::DBus::SessionBus.instance
-            main.run
+            @server.run
         end
     end
 end


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