common: fix connector failure
This commit is contained in:
parent
e4cbd6cf3f
commit
5a0af0364f
3
common.c
3
common.c
|
@ -258,8 +258,9 @@ connector_on_ready (const struct pollfd *pfd, struct connector *self)
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
connector_notify_error (self, strerror (errno));
|
connector_notify_error (self, strerror (error));
|
||||||
|
|
||||||
|
poller_fd_reset (&self->connected_event);
|
||||||
xclose (self->socket);
|
xclose (self->socket);
|
||||||
self->socket = -1;
|
self->socket = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue