Fix trayicon compatibility with latest gevent
This commit is contained in:
parent
6783fb9010
commit
53a8c2d574
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class ActionsPlugin(object):
|
||||||
|
|
||||||
icon.clicked = lambda: self.opensite("http://%s:%s/%s" % (ui_ip, config.ui_port, config.homepage))
|
icon.clicked = lambda: self.opensite("http://%s:%s/%s" % (ui_ip, config.ui_port, config.homepage))
|
||||||
self.quit_servers_event = gevent.threadpool.ThreadResult(
|
self.quit_servers_event = gevent.threadpool.ThreadResult(
|
||||||
lambda res: gevent.spawn_later(0.1, self.quitServers)
|
lambda res: gevent.spawn_later(0.1, self.quitServers), gevent.threadpool.get_hub(), lambda: True
|
||||||
) # Fix gevent thread switch error
|
) # Fix gevent thread switch error
|
||||||
gevent.threadpool.start_new_thread(icon._run, ()) # Start in real thread (not gevent compatible)
|
gevent.threadpool.start_new_thread(icon._run, ()) # Start in real thread (not gevent compatible)
|
||||||
super(ActionsPlugin, self).main()
|
super(ActionsPlugin, self).main()
|
||||||
|
|
Loading…
Reference in a new issue