Skip to content

Commit 0b376b9

Browse files
committed
Join process on termination
1 parent 6d28dc8 commit 0b376b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

postgresql_watcher/watcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def _cleanup_connections_and_processes(self) -> None:
134134
self.child_conn = None
135135
if self.subscription_process is not None:
136136
self.subscription_process.terminate()
137+
self.subscription_process.join()
137138
self.subscription_process = None
138139

139140
def set_update_callback(self, update_handler: Optional[Callable[[None], None]]):

0 commit comments

Comments
 (0)