aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api/python')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_transport_socket.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
index 80a2e88f943..b00d15de873 100644
--- a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
+++ b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
@@ -69,11 +69,10 @@ class VppTransport(object):
def connect(self, name, pfx, msg_handler, rx_qlen):
- if self.message_thread.daemon is not None:
+ if self.message_thread is not None:
raise RuntimeError(
"PAPI socket transport connect: You need to disconnect first.")
- self.message_thread.daemon = threading.Thread(
- target=self.msg_thread_func)
+ self.message_thread = threading.Thread(target=self.msg_thread_func)
# Create a UDS socket
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)