error-notify: Close file descriptors in case clients are still connected
This commit is contained in:
1 parent
2467c46856
commit
237bb5d467
1 file changed
+6
@@ -176,6 +176,12 @@ static job_requeue_t accept_(private_error_notify_socket_t *this)
|
|||||||
METHOD(error_notify_socket_t, destroy, void,
|
METHOD(error_notify_socket_t, destroy, void,
|
||||||
private_error_notify_socket_t *this)
|
private_error_notify_socket_t *this)
|
||||||
{
|
{
|
||||||
|
uintptr_t fd;
|
||||||
|
|
||||||
|
while (this->connected->remove_last(this->connected, (void*)&fd) == SUCCESS)
|
||||||
|
{
|
||||||
|
close(fd);
|
||||||
|
}
|
||||||
this->connected->destroy(this->connected);
|
this->connected->destroy(this->connected);
|
||||||
this->mutex->destroy(this->mutex);
|
this->mutex->destroy(this->mutex);
|
||||||
close(this->socket);
|
close(this->socket);
|
||||||
|
|||||||
Reference in new issue
Block a user