Small cleanup.

This commit is contained in:
Florian Bruhin 2014-10-13 07:31:56 +02:00
parent 4958da9c70
commit 451a8be748

View File

@ -66,10 +66,10 @@ def send_to_running_instance(cmdlist):
def init_server():
global server
server = QLocalServer()
ok = QLocalServer.removeServer(SOCKETNAME)
if not ok:
raise IPCError("Error while removing server {}!".format(SOCKETNAME))
server = QLocalServer()
ok = server.listen(SOCKETNAME)
if not ok:
raise IPCError("Error while listening to local socket: {}".format(