mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-15 19:34:22 +01:00
ADD IF CONDITION In case connection was lost, or something happens to write
terminal to be null
This commit is contained in:
@@ -484,7 +484,9 @@ class StdOutStdErrEmulationProtocol(object):
|
||||
"""
|
||||
self.data = self.data + data
|
||||
if not self.next_protocol:
|
||||
self.protocol.terminal.write(data)
|
||||
if not self.protocol is None and not self.protocol.terminal is None:
|
||||
log.msg("Connection was probably lost. Could not write to terminal")
|
||||
self.protocol.terminal.write(data)
|
||||
|
||||
|
||||
def errReceived(self, data):
|
||||
|
||||
Reference in New Issue
Block a user