parent
8993721ecb
commit
dbd8b1bff9
2 changed files with 4 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ class RequestDirector:
|
|||
def close(self):
|
||||
for handler in self.handlers.values():
|
||||
handler.close()
|
||||
self.handlers = {}
|
||||
self.handlers.clear()
|
||||
|
||||
def add_handler(self, handler: RequestHandler):
|
||||
"""Add a handler. If a handler of the same RH_KEY exists, it will overwrite it"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue