stop logging last, otherwise disconnect logging give exception

This commit is contained in:
Michel Oosterhof
2015-12-29 13:18:22 +00:00
parent fac6ba6fbf
commit e2a48b6319

View File

@@ -105,9 +105,9 @@ class HoneyPotSSHFactory(factory.SSHFactory):
def stopFactory(self):
"""
"""
factory.SSHFactory.stopFactory(self)
for output in self.output_plugins:
output.stop()
factory.SSHFactory.stopFactory(self)
def buildProtocol(self, addr):