.HIDE. idk
This commit is contained in:
parent
6d04074ff6
commit
a65a94b57d
|
@ -47,10 +47,8 @@ from events import matchChangeTeamEvent
|
||||||
from helpers import discordBotHelper
|
from helpers import discordBotHelper
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
from tornado import web
|
|
||||||
|
|
||||||
class handler(requestHelper.asyncRequestHandler):
|
class handler(requestHelper.asyncRequestHandler):
|
||||||
@web.asynchronous
|
|
||||||
def asyncPost(self):
|
def asyncPost(self):
|
||||||
try:
|
try:
|
||||||
# Track time if needed
|
# Track time if needed
|
||||||
|
|
|
@ -16,3 +16,4 @@ memes = True
|
||||||
restarting = False
|
restarting = False
|
||||||
pool = None
|
pool = None
|
||||||
requestTime = False
|
requestTime = False
|
||||||
|
iol = None
|
||||||
|
|
4
pep.py
4
pep.py
|
@ -190,4 +190,6 @@ if __name__ == "__main__":
|
||||||
# Start tornado
|
# Start tornado
|
||||||
app = tornado.httpserver.HTTPServer(make_app())
|
app = tornado.httpserver.HTTPServer(make_app())
|
||||||
app.listen(serverPort)
|
app.listen(serverPort)
|
||||||
tornado.ioloop.IOLoop.instance().start()
|
glob.iol = tornado.ioloop.IOLoop.instance()
|
||||||
|
glob.iol.start()
|
||||||
|
#tornado.ioloop.IOLoop.instance().start()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user