netns: Delete the associated client if an I/O error occurs.
This commit is contained in:
parent
d40dae4e1c
commit
73b14f17b8
1 changed files with 5 additions and 0 deletions
|
@ -409,6 +409,11 @@ static void vcmd_ioerrorcb(vnode_client_t *client)
|
|||
assert(self->_client == client);
|
||||
|
||||
self->_client_connected = 0;
|
||||
if (self->_client)
|
||||
{
|
||||
vnode_delclient(self->_client);
|
||||
self->_client = NULL;
|
||||
}
|
||||
|
||||
if (pythreads)
|
||||
PyGILState_Release(gstate);
|
||||
|
|
Loading…
Reference in a new issue