summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.c b/common.c
index 32ccc01..ce9e80f 100644
--- a/common.c
+++ b/common.c
@@ -258,8 +258,9 @@ connector_on_ready (const struct pollfd *pfd, struct connector *self)
if (error)
{
- connector_notify_error (self, strerror (errno));
+ connector_notify_error (self, strerror (error));
+ poller_fd_reset (&self->connected_event);
xclose (self->socket);
self->socket = -1;