Skip to content

Commit

Permalink
Merge pull request #1551 from evilpaul-atebit/patch-1
Browse files Browse the repository at this point in the history
Problem: zbeacon would not try to reconnect more than once
  • Loading branch information
bluca authored Nov 8, 2016
2 parents 0acaef9 + 6910a47 commit d9750c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/zbeacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ s_self_prepare_udp (self_t *self)
zsys_info ("zbeacon: configured, hostname=%s", self->hostname);
}
}
else
{
// No valid interface. Close the socket so that we can try again later
zsys_udp_close(self->udpsock);
self->udpsock = INVALID_SOCKET;
}
}


Expand Down

0 comments on commit d9750c0

Please sign in to comment.