Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def run(self, callback):
def terminate(self):
self.gz_vnc.terminate()
if self.threads is not None:
for thread in self.threads:
for thread in self.threads[:]:
if thread.is_alive():
thread.terminate()
thread.join()
Expand Down
2 changes: 1 addition & 1 deletion robotics_application_manager/manager/vnc/vnc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def is_running(self):

def terminate(self):
"""Terminate all running threads and stop the VNC server."""
for thread in self.threads:
for thread in self.threads[:]:
if thread.is_alive():
thread.terminate()
thread.join()
Expand Down
Loading