diff --git a/handlers/mainHandler.py b/handlers/mainHandler.py index 34b9caf..1832d45 100644 --- a/handlers/mainHandler.py +++ b/handlers/mainHandler.py @@ -47,10 +47,8 @@ from events import matchChangeTeamEvent from helpers import discordBotHelper import sys import traceback -from tornado import web class handler(requestHelper.asyncRequestHandler): - @web.asynchronous def asyncPost(self): try: # Track time if needed diff --git a/objects/glob.py b/objects/glob.py index 17fc34d..5714755 100644 --- a/objects/glob.py +++ b/objects/glob.py @@ -16,3 +16,4 @@ memes = True restarting = False pool = None requestTime = False +iol = None diff --git a/pep.py b/pep.py index caf1992..f96f8e0 100644 --- a/pep.py +++ b/pep.py @@ -190,4 +190,6 @@ if __name__ == "__main__": # Start tornado app = tornado.httpserver.HTTPServer(make_app()) app.listen(serverPort) - tornado.ioloop.IOLoop.instance().start() + glob.iol = tornado.ioloop.IOLoop.instance() + glob.iol.start() + #tornado.ioloop.IOLoop.instance().start()