mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-08 04:39:29 +01:00
fixed priority issue that was preventing daemonization
This commit is contained in:
@@ -70,6 +70,7 @@ def serverstart():
|
||||
{settings['http_username']:settings['http_password']})
|
||||
})
|
||||
|
||||
|
||||
if options.daemonize:
|
||||
Daemonizer(cherrypy.engine).subscribe()
|
||||
|
||||
|
||||
@@ -97,8 +97,4 @@ def searchNZB(albumid=None):
|
||||
conn.commit()
|
||||
|
||||
c.close()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -18,16 +18,15 @@ class threadtool(SimplePlugin):
|
||||
self.thread = threading.Thread(target=self.run)
|
||||
self.thread.start()
|
||||
self.sched.start()
|
||||
start.priority = 80
|
||||
|
||||
def stop(self):
|
||||
self.running = False
|
||||
print '''Shutting down'''
|
||||
|
||||
if self.thread:
|
||||
self.thread.join()
|
||||
self.thread = None
|
||||
self.running = False
|
||||
self.sched.shutdown()
|
||||
stop.priority = 10
|
||||
|
||||
def run(self):
|
||||
import updater
|
||||
|
||||
Reference in New Issue
Block a user