Commit 82ac7d72 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Removed some deprecated function calls

parent 09ed63b1
......@@ -26,14 +26,10 @@ class Server(object):
while True:
try:
client_socket, address = self.sock.accept()
logging.debug('Attempting handshake with %s:%d' % address)
self.handshake(client_socket)
client = Client(self, client_socket, address)
client.handshake()
self.clients.append(client)
logging.info('Registered client %s', client)
self.onopen(client)
client.run_threaded()
except KeyboardInterrupt:
logging.info('Received interrupt, stopping server...')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment