Bug 1017022 - call close() on a valid object, r=jgriffin

This commit is contained in:
Malini Das 2014-06-02 11:01:28 -04:00
parent fc69bdee3c
commit a87db6b02f

View File

@ -103,5 +103,6 @@ class MarionetteTransport(object):
def close(self):
""" Close the socket.
"""
self.sock.close()
if self.sock:
self.sock.close()
self.sock = None