mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-31 20:14:27 +01:00
remove circular references
This commit is contained in:
@@ -71,10 +71,18 @@ class HoneyPotTelnetSession(TelnetBootstrapProtocol):
|
||||
self.protocol.makeConnection(processprotocol)
|
||||
processprotocol.makeConnection(session.wrapProtocol(self.protocol))
|
||||
|
||||
|
||||
def connectionLost(self, reason):
|
||||
"""
|
||||
# TODO do I need to implement connectionLost?
|
||||
# XXX verify if HoneyPotTelnetAuthProtocol's connectionLost fires otherwise
|
||||
# we'll have to reimplement some of the stuff here
|
||||
#def connectionLost(self, reason):
|
||||
"""
|
||||
TelnetBootstrapProtocol.connectionLost(reason)
|
||||
self.server = None
|
||||
self.cfg = None
|
||||
self.avatar = None
|
||||
|
||||
# pt = self.transport
|
||||
# if pt.transport.sessionno in pt.factory.sessions:
|
||||
# del pt.factory.sessions[pt.transport.sessionno]
|
||||
|
||||
Reference in New Issue
Block a user