summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-12-22 14:35:32 +0100
committerBenoit Foucher <benoit@zeroc.com>2016-12-22 14:35:32 +0100
commitf6c58b12afd1c5fc0d3d33c82af35e8185984a92 (patch)
tree8788b90e0ed546d836059ff80bb372f228b3b7c6 /scripts/Util.py
parentRevert Windows default platform/configuration to Win32/Debug (diff)
downloadice-f6c58b12afd1c5fc0d3d33c82af35e8185984a92.tar.bz2
ice-f6c58b12afd1c5fc0d3d33c82af35e8185984a92.tar.xz
ice-f6c58b12afd1c5fc0d3d33c82af35e8185984a92.zip
Fixed potential threading issue on controller destroy
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index 23e321c9a98..443185ce368 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -1737,6 +1737,7 @@ class RemoteProcessController(ProcessController):
def __init__(self, current, endpoints=None):
self.processControllerProxies = {}
+ self.controllerApps = []
self.cond = threading.Condition()
if endpoints:
comm = current.driver.getCommunicator()
@@ -1778,6 +1779,7 @@ class RemoteProcessController(ProcessController):
import Test
if current.driver.controllerApp:
+ self.controllerApps.append(ident)
self.startControllerApp(current, ident)
if not self.adapter:
@@ -1855,8 +1857,9 @@ class RemoteProcessController(ProcessController):
def destroy(self, driver):
if driver.controllerApp:
- for ident in self.processControllerProxies.keys():
+ for ident in self.controllerApps:
self.stopControllerApp(ident)
+ self.controllerApps = []
if self.adapter:
self.adapter.destroy()
@@ -2340,7 +2343,7 @@ class CppMapping(Mapping):
props = Mapping.getSSLProps(self, process, current)
server = isinstance(process, Server)
uwp = current.config.buildPlatform == "UWP"
-
+
props.update({
"IceSSL.CAs": "cacert.pem",
"IceSSL.CertFile": "server.p12" if server else "ms-appx:///client.p12" if uwp else "client.p12"