Skip to content

Commit

Permalink
check ws is none or not when stop the tab
Browse files Browse the repository at this point in the history
  • Loading branch information
fate0 committed Dec 25, 2017
1 parent 08995c9 commit 16acdf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pychrome/tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def stop(self):

self.status = self.status_stopped
self._stopped.set()
self._ws.close()
if self._ws:
self._ws.close()
return True

def wait(self, timeout=None):
Expand Down

0 comments on commit 16acdf9

Please sign in to comment.