mirror of https://github.com/Shizmob/pydle.git
Merge branch 'async' of github:Shizmob/pydle into async
This commit is contained in:
commit
0472d6020a
|
@ -13,8 +13,10 @@ class EventLoop:
|
|||
'error': tornado.ioloop.IOLoop.ERROR
|
||||
}
|
||||
|
||||
def __init__(self):
|
||||
self.io_loop = tornado.ioloop.IOLoop.current()
|
||||
def __init__(self, io_loop=None):
|
||||
if io_loop is None:
|
||||
io_loop = tornado.ioloop.IOLoop.current()
|
||||
self.io_loop = io_loop
|
||||
self.running = False
|
||||
self.handlers = {}
|
||||
self._context_future = None
|
||||
|
|
Loading…
Reference in New Issue