summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2019-05-09 11:06:09 +0200
committerVratko Polak <vrpolak@cisco.com>2019-05-09 11:08:01 +0200
commit2233f85694c92a7f2c106ed4e6c50ad145dfb4e2 (patch)
treea54eb5f380e4c320fbdd0f263f16dc318f6de0ad /src/vpp-api/python
parent7b74b073e4e351fdc0ca1f94655c572405176a1b (diff)
Fix copypaste in vpp_papi/vpp_transport_socket.py
Change-Id: I80e6ccd6f63e3eca2ba723f3b39a47475ae9aed0 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
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)