diff --git a/lib/vhost/socket.c b/lib/vhost/socket.c index 96b3ab55956..f3b5662d83a 100644 --- a/lib/vhost/socket.c +++ b/lib/vhost/socket.c @@ -1125,6 +1125,8 @@ rte_vhost_driver_unregister(const char *path) if (vsocket->is_server) { close(vsocket->socket_fd); unlink(path); + } else if (vsocket->reconnect) { + vhost_user_remove_reconnect(vsocket); } pthread_mutex_destroy(&vsocket->conn_mutex);