common: fix connector failure

This commit is contained in:
Přemysl Eric Janouch 2015-05-12 04:26:18 +02:00
parent e4cbd6cf3f
commit 5a0af0364f
1 changed files with 2 additions and 1 deletions

View File

@ -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;