FreeNAS test fix #4

This commit is contained in:
echel0n 2014-06-18 13:41:20 -07:00
parent cefbe3859a
commit c792e34c43
2 changed files with 4 additions and 10 deletions

View file

@ -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()

View file

@ -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='