mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
FreeNAS test fix #4
This commit is contained in:
parent
cefbe3859a
commit
c792e34c43
2 changed files with 4 additions and 10 deletions
12
SickBeard.py
12
SickBeard.py
|
@ -75,7 +75,7 @@ signal.signal(signal.SIGINT, sickbeard.sig_handler)
|
|||
signal.signal(signal.SIGTERM, sickbeard.sig_handler)
|
||||
|
||||
throwaway = datetime.datetime.strptime('20110101', '%Y%m%d')
|
||||
|
||||
io_loop = IOLoop.current()
|
||||
|
||||
def loadShowsFromDB():
|
||||
"""
|
||||
|
@ -362,9 +362,6 @@ def main():
|
|||
if forceUpdate or sickbeard.UPDATE_SHOWS_ON_START:
|
||||
sickbeard.showUpdateScheduler.action.run(force=True) # @UndefinedVariable
|
||||
|
||||
# get ioloop
|
||||
io_loop = IOLoop.current()
|
||||
|
||||
# init startup tasks
|
||||
io_loop.add_timeout(datetime.timedelta(seconds=5), startup)
|
||||
|
||||
|
@ -379,12 +376,9 @@ def main():
|
|||
# Use this PID for everything
|
||||
sickbeard.PID = os.getpid()
|
||||
|
||||
# start IOLoop.
|
||||
io_loop.start()
|
||||
sickbeard.saveAndShutdown()
|
||||
return
|
||||
|
||||
if __name__ == "__main__":
|
||||
if sys.hexversion >= 0x020600F0:
|
||||
freeze_support()
|
||||
main()
|
||||
io_loop.start()
|
||||
sickbeard.saveAndShutdown()
|
|
@ -65,7 +65,7 @@ def initWebServer(options={}):
|
|||
|
||||
# Load the app
|
||||
app = Application([],
|
||||
debug=sickbeard.DEBUG,
|
||||
debug=False,
|
||||
gzip=True,
|
||||
xheaders=sickbeard.HANDLE_REVERSE_PROXY,
|
||||
cookie_secret='61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo='
|
||||
|
|
Loading…
Reference in a new issue