- What the fuck.

Sat, 29 Nov 2014 05:56:32 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sat, 29 Nov 2014 05:56:32 +0200
changeset 95
af912f53649c
parent 94
2c93636202a5
child 96
24f0b13e87d3

- What the fuck.

rest.py file | annotate | diff | comparison | revisions
--- 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

mercurial