Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7a99823
)
papi: make socket disconnect more robust
91/20091/2
author
Vratko Polak
<
[email protected]
>
Wed, 12 Jun 2019 14:43:06 +0000
(16:43 +0200)
committer
Ole Trøan
<
[email protected]
>
Wed, 12 Jun 2019 16:34:30 +0000
(16:34 +0000)
Previusly, read error could happen before message_thread starts,
so do not attempt to join in that case.
Change-Id: Ie119916831e320e38eb02e48515b4c6a9cb937e5
Signed-off-by: Vratko Polak <
[email protected]
>
src/vpp-api/python/vpp_papi/vpp_transport_socket.py
patch
|
blob
|
history
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
6e228e4
..
d26a3d4
100644
(file)
--- a/
src/vpp-api/python/vpp_papi/vpp_transport_socket.py
+++ b/
src/vpp-api/python/vpp_papi/vpp_transport_socket.py
@@
-149,7
+149,7
@@
class VppTransport(object):
self.socket.close()
if self.sque is not None:
self.sque.put(True) # Terminate listening thread
- if self.message_thread is not None:
+ if self.message_thread is not None
and self.message_thread.is_alive()
:
# Allow additional connect() calls.
self.message_thread.join()
# Collect garbage.