summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMagnus Feuer <mfeuer@jaguarlandrover.com>2015-06-10 09:58:47 -0700
committerMagnus Feuer <mfeuer@jaguarlandrover.com>2015-06-10 09:58:47 -0700
commit1bbd287fb2341278bb5bdbdf45717e223504e1f7 (patch)
tree376e561e84502051cbc1f86f893235a2f9bfd620 /python
parent2a85a0d99345ae19473228154ba1cd74411d9cb1 (diff)
downloadrvi_core-1bbd287fb2341278bb5bdbdf45717e223504e1f7.tar.gz
Fixed shutdown issue of multiple services
Diffstat (limited to 'python')
-rw-r--r--python/rvilib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/rvilib.py b/python/rvilib.py
index 8d2551c..e00dff9 100644
--- a/python/rvilib.py
+++ b/python/rvilib.py
@@ -156,7 +156,8 @@ class RVI(SimpleJSONRPCServer):
# Redefined shutdown method that first unregisters all services.
#
def shutdown(self):
- for svc in self.registered_services.keys():
+ shutdown_list = self.registered_services.keys()
+ for svc in shutdown_list:
self.unregister_service(svc)
SimpleJSONRPCServer.shutdown(self)