update daemon

Start status bar if possible
This commit is contained in:
Jack 2016-02-18 20:55:59 -05:00
parent 3ff0916f49
commit 58aa4887ad

View file

@ -1051,7 +1051,20 @@ class DaemonStatusBarApp(rumps.App):
def main(): def main():
if sys.platform == "darwin": 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: else:
try: try:
d = xmlrpclib.ServerProxy('http://localhost:7080') d = xmlrpclib.ServerProxy('http://localhost:7080')