diff -r 2c93636202a5 -r af912f53649c rest.py --- a/rest.py Fri Nov 28 22:45:55 2014 -0500 +++ b/rest.py Sat Nov 29 05:56:32 2014 +0200 @@ -112,7 +112,7 @@ address = None def __init__ (self, conn, address): - asyncore.dispatcher.__init__ (self, conn) + asyncore.dispatcher.__init__ (self, conn, address) self.socket = ssl.wrap_socket (conn, server_side=True, keyfile='key.pem', certfile='cert.pem', do_handshake_on_connect=False) self.socket.setblocking (0) @@ -193,8 +193,5 @@ Irc.broadcast ('REST connection from %s:%s' % address) conn = RESTConnection (sock, address) - if conn.address == None: - conn.__init__ (sock, address) # eh? - def handle_error (self): return