diff options
author | aleherbau | 2011-05-30 14:02:40 +0000 |
---|---|---|
committer | aleherbau | 2011-05-30 14:02:40 +0000 |
commit | 7fab0fe75c0e8c52944ff71f905beae0ba12888f (patch) | |
tree | b8d343c0f2f57359e35d1b5bbe631156f58e1559 /python/src/tcf/tests | |
parent | 9878b6c85ea6e495bfb4e984df9cd79a31f7f66b (diff) | |
download | org.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')
-rw-r--r-- | python/src/tcf/tests/BasicTests.py | 3 |
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")
|