1
0

daemon messages

This commit is contained in:
ThomasV
2014-08-18 13:40:08 +02:00
parent 854f49fbed
commit 13a01b11d2
2 changed files with 3 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ def get_daemon(config, start_daemon=True):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('', daemon_port))
if not daemon_started:
print_stderr("Connected to daemon on port %d"%daemon_port)
return s
except socket.error:
if not start_daemon: