Browse Source

interface: close wire is response is not dict

master
ThomasV 9 years ago
parent
commit
7daa8ebfdd
  1. 7
      lib/interface.py

7
lib/interface.py

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

Loading…
Cancel
Save