From 2233f85694c92a7f2c106ed4e6c50ad145dfb4e2 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Thu, 9 May 2019 11:06:09 +0200 Subject: Fix copypaste in vpp_papi/vpp_transport_socket.py Change-Id: I80e6ccd6f63e3eca2ba723f3b39a47475ae9aed0 Signed-off-by: Vratko Polak --- src/vpp-api/python/vpp_papi/vpp_transport_socket.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/vpp-api') 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) -- cgit 1.2.3-korg