netns: Delete the associated client if an I/O error occurs.

This commit is contained in:
Tom Goff 2016-03-04 16:56:09 -05:00
parent d40dae4e1c
commit 73b14f17b8

View file

@ -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);