Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pylacewing: Fix example file

  • Loading branch information...
commit d4fd0969d89cf039a961517f11cab829dd2bd0c3 1 parent 279d38d
@matpow2 matpow2 authored
View
4 relay/python/examples/complete/server_example.py
@@ -60,9 +60,9 @@ def connectionLost(self, reason):
if self.loggedIn:
self.log('Connection disconnected.')
- def disconnect(self, reason):
+ def disconnect(self, reason = None, *arg, **kw):
print self.log('Kicked: %s' % reason)
- ServerProtocol.disconnect(self, reason)
+ ServerProtocol.disconnect(self, reason, *arg, **kw)
def log(self, message):
"""
View
2  relay/python/lacewing/server.py
@@ -239,7 +239,7 @@ def dataReceived(self, data):
if self._firstByte:
if data[0] != '\x00':
# we don't support the HTTP relay
- self.disconnect()
+ self.transport.loseConnection()
return
data = data[1:]
self._firstByte = False
Please sign in to comment.
Something went wrong with that request. Please try again.