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

[libvirt] The gui should drop the connection if libvirt stops for any reason like service libvirt stop.



diff -u virtManager/engine.py~ virtManager/engine.py
--- virtManager/engine.py~	2009-03-16 14:49:16.000000000 -0400
+++ virtManager/engine.py	2009-03-16 14:58:05.000000000 -0400
@@ -158,6 +158,7 @@
logging.error(("Could not refresh connection %s\n" % (uri)) + str(sys.exc_info()[0]) + \
                               " " + str(sys.exc_info()[1]) + "\n" + \
                               traceback.format_exc(sys.exc_info()[2]))
+                self.connections[uri]["connection"].close()
         return 1

     def change_timer_interval(self,ignore1,ignore2,ignore3,ignore4):


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