interface: close wire is response is not dict
This commit is contained in:
@@ -313,10 +313,11 @@ class Interface(util.PrintError):
|
|||||||
response = self.pipe.get()
|
response = self.pipe.get()
|
||||||
except util.timeout:
|
except util.timeout:
|
||||||
break
|
break
|
||||||
if response is None:
|
if not type(response) is dict:
|
||||||
responses.append((None, None))
|
responses.append((None, None))
|
||||||
self.closed_remotely = True
|
if response is None:
|
||||||
self.print_error("connection closed remotely")
|
self.closed_remotely = True
|
||||||
|
self.print_error("connection closed remotely")
|
||||||
break
|
break
|
||||||
if self.debug:
|
if self.debug:
|
||||||
self.print_error("<--", response)
|
self.print_error("<--", response)
|
||||||
|
|||||||
Reference in New Issue
Block a user