Skip to content

Commit

Permalink
add stop for watcher, close #812
Browse files Browse the repository at this point in the history
  • Loading branch information
孙圣翔²⁰₂₁ authored and 孙圣翔²⁰₂₁ committed Aug 30, 2024
1 parent 75fe286 commit fb9d9f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uiautomator2/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def stop(self):
self.__stop.set()
self.__stopped.wait(timeout=10)
self.__started = False

def close(self):
""" alias of stop """
self.stop()

def __enter__(self):
return self
Expand Down

0 comments on commit fb9d9f8

Please sign in to comment.