Merge pull request #782 from wozz/daemon-fix

Fix issue with daemon socket on OS X
This commit is contained in:
wozz 2014-07-30 16:44:45 -04:00
commit 7e8644ef15
1 changed files with 1 additions and 1 deletions

View File

@ -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: