summaryrefslogtreecommitdiffstats
path: root/src/vpp-api
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpp-api')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_transport_socket.py4
1 files changed, 2 insertions, 2 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 a6340d8bb9e..4af2d934ae8 100644
--- a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
+++ b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
@@ -8,7 +8,6 @@ import select
import multiprocessing
import queue
import logging
-from . import vpp_papi
logger = logging.getLogger('vpp_papi.transport')
logger.addHandler(logging.NullHandler())
@@ -141,8 +140,9 @@ class VppTransport:
try:
# Might fail, if VPP closes socket before packet makes it out,
# or if there was a failure during connect().
+ # TODO: manually build message so that .disconnect releases server-side resources
rv = self.parent.api.sockclnt_delete(index=self.socket_index)
- except (IOError, vpp_papi.VPPApiError):
+ except (IOError, self.parent.VPPApiError):
pass
self.connected = False
if self.socket is not None: