do not try to connect to daemon on windows (af_unix)

This commit is contained in:
ThomasV 2015-03-09 09:35:10 +01:00
parent d2097c15d9
commit 4780d8f811
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ def get_daemon(config, start_daemon=True):
daemon_started = True
else:
time.sleep(0.1)
except:
# do not use daemon if AF_UNIX is not available (windows)
return False