commit 7e8644ef151c78dad9a45099d590a010904edcf1
parent f1efa2f82c0ac617df09782018748172c541de4f
Author: wozz <wozz@users.noreply.github.com>
Date: Wed, 30 Jul 2014 16:44:45 -0400
Merge pull request #782 from wozz/daemon-fix
Fix issue with daemon socket on OS X
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/daemon.py b/lib/daemon.py
@@ -42,11 +42,11 @@ def do_start_daemon(config):
def get_daemon(config, start_daemon=True):
import socket
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
daemon_port = config.get('daemon_port', DAEMON_PORT)
daemon_started = False
while True:
try:
+ s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('', daemon_port))
return s
except socket.error: