|
@@ -116,8 +116,6 @@ class ConnHandler(object):
|
|
|
"""
|
|
|
def __init__(self, socket, addr, server):
|
|
|
super(ConnHandler, self).__init__(socket,addr,server)
|
|
|
- task = await curio.spawn(self.welcome_client)
|
|
|
- task.join()
|
|
|
|
|
|
async def disconnect(self):
|
|
|
"""
|
|
@@ -366,6 +364,8 @@ class Server(object):
|
|
|
This method waits for the client to send something and calls the
|
|
|
ClientHandler's handle method. there is a handle_client method running for each client connected.
|
|
|
"""
|
|
|
+ if hasattr(handler,"on_welcome"):
|
|
|
+ await handler.on_welcome()
|
|
|
while True:
|
|
|
try:
|
|
|
if self.log_ip:
|