Ensure to have only one instance of IPCServer running

This commit is contained in:
Cédric Krier committed 2011-03-27 16:43:03 +02:00
1 parent 9441deda6a
commit 6961fe94d2
1 file changed
+2
+2
View File
@@ -19,6 +19,8 @@ class IPCServer(object):
instance = None
def __init__(self, hostname, port, database):
if Server.instance:
Server.instance.stop()
self.hostname = hostname
self.port = port
self.database = database