Пример #1
0
 def close(self):
     try:
         if not self._coord.should_stop():
             self._coord.request_stop()
             self._coord.join(self._coordinated_threads_to_join)
     except Exception:  # pylint: disable=broad-except
         # Don't raise exception at close
         pass
     finally:
         WrappedSession.close(self)
Пример #2
0
 def close(self):
   try:
     if not self._coord.should_stop():
       self._coord.request_stop()
       self._coord.join(self._coordinated_threads_to_join)
   except Exception:  # pylint: disable=broad-except
     # Don't raise exception at close
     pass
   finally:
     WrappedSession.close(self)