From 58aa4887ad1c14030cf867e9850fd6b72b3c5ed4 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 18 Feb 2016 20:55:59 -0500 Subject: [PATCH] update daemon Start status bar if possible --- lbrynet/lbrynet_daemon/LBRYDaemon.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index 237909662..d23b9f908 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -1051,7 +1051,20 @@ class DaemonStatusBarApp(rumps.App): def main(): if sys.platform == "darwin": - DaemonStatusBarApp().run() + try: + DaemonStatusBarApp().run() + except: + print "Couldn't start status bar app" + try: + d = xmlrpclib.ServerProxy('http://localhost:7080') + d.stop() + except: + pass + + daemon = LBRYDaemon() + daemon.setup() + reactor.listenTCP(7080, server.Site(daemon)) + reactor.run() else: try: d = xmlrpclib.ServerProxy('http://localhost:7080')