Skip to content

Commit

Permalink
prevent log msg on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Frens Jan Rumph committed Apr 19, 2017
1 parent 74f2761 commit 895e1cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bndl/net/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ def stop_async(self):

def _stop_tasks(self):
# stop watching
if self._watchdog:
watchdog = getattr(self, '_watchdog')
if watchdog:
with catch(RuntimeError, log_level=logging.WARNING):
self._watchdog.stop()
watchdog.stop()
self._watchdog = None

super()._stop_tasks()
Expand Down

0 comments on commit 895e1cc

Please sign in to comment.