shutdown the session async executor to cleanup useless threads

This commit is contained in:
Romain Bignon 2015-03-24 23:59:22 +01:00
commit 6709974d35
2 changed files with 8 additions and 0 deletions

View file

@ -118,6 +118,9 @@ class Browser(object):
if isinstance(self.VERIFY, basestring):
self.VERIFY = self.asset(self.VERIFY)
def deinit(self):
self.session.close()
def load_state(self, state):
if 'cookies' in state:
try: