Prevent crash if connection is already lost (#563)

This commit is contained in:
fe7ch 2017-07-29 20:27:27 +03:00 committed by Michel Oosterhof
parent b788081cd0
commit 6a84e49779
1 changed files with 2 additions and 1 deletions

View File

@ -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