mirror of https://github.com/cowrie/cowrie.git
Prevent crash if connection is already lost (#563)
This commit is contained in:
parent
b788081cd0
commit
6a84e49779
|
@ -546,7 +546,8 @@ class StdOutStdErrEmulationProtocol(object):
|
|||
def errReceived(self, data):
|
||||
"""
|
||||
"""
|
||||
self.protocol.terminal.write(data)
|
||||
if self.protocol and self.protocol.terminal:
|
||||
self.protocol.terminal.write(data)
|
||||
self.err_data = self.err_data + data
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue