From 5a0af0364f3eb5cb98f56493d9681afde3b1a0b1 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Tue, 12 May 2015 04:26:18 +0200
Subject: common: fix connector failure
---
common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
--
cgit v1.2.3-70-g09d2