aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-12 04:26:18 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-12 05:04:17 +0200
commit5a0af0364f3eb5cb98f56493d9681afde3b1a0b1 (patch)
tree816641c084bc3c59da42885df6097b4fd0918d0f
parente4cbd6cf3f983a5bb2e3517f6ca4bec243c09937 (diff)
downloadxK-5a0af0364f3eb5cb98f56493d9681afde3b1a0b1.tar.gz
xK-5a0af0364f3eb5cb98f56493d9681afde3b1a0b1.tar.xz
xK-5a0af0364f3eb5cb98f56493d9681afde3b1a0b1.zip
common: fix connector failure
-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;