Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleherbau2011-05-30 14:02:40 +0000
committeraleherbau2011-05-30 14:02:40 +0000
commit7fab0fe75c0e8c52944ff71f905beae0ba12888f (patch)
treeb8d343c0f2f57359e35d1b5bbe631156f58e1559 /python/src/tcf/tests/BasicTests.py
parent9878b6c85ea6e495bfb4e984df9cd79a31f7f66b (diff)
downloadorg.eclipse.tcf-7fab0fe75c0e8c52944ff71f905beae0ba12888f.tar.gz
org.eclipse.tcf-7fab0fe75c0e8c52944ff71f905beae0ba12888f.tar.xz
org.eclipse.tcf-7fab0fe75c0e8c52944ff71f905beae0ba12888f.zip
TCF Python: Fix lockup if connection refused
Diffstat (limited to 'python/src/tcf/tests/BasicTests.py')
-rw-r--r--python/src/tcf/tests/BasicTests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/src/tcf/tests/BasicTests.py b/python/src/tcf/tests/BasicTests.py
index 7e3bbb9cf..24b92939c 100644
--- a/python/src/tcf/tests/BasicTests.py
+++ b/python/src/tcf/tests/BasicTests.py
@@ -9,7 +9,7 @@
# * Wind River Systems - initial API and implementation
# *******************************************************************************
-import sys, time, threading
+import sys, time, threading, atexit
import tcf
from tcf import protocol, channel, errors
from tcf.util import sync
@@ -28,6 +28,7 @@ _memory = []
def test():
protocol.startEventQueue()
+ atexit.register(protocol.getEventQueue().shutdown)
#testTimer()
try:
c = tcf.connect("TCP:127.0.0.1:1534")

Back to the top