Repository : ssh://git@open-mesh.org/alfred
On branch : master
commit 65d26cae04b75d029d6686bdee30de92cbee70e7 Author: Sven Eckelmann sven@open-mesh.com Date: Tue Oct 1 14:02:13 2013 +0200
alfred: Try to reinitialize invalid netsock
Alfred needs to recover when the netsock became invalid. Otherwise it is incapable of communicating with other alfred instances. This recovery can fail until the used interface reappeared.
Signed-off-by: Sven Eckelmann sven@open-mesh.com Signed-off-by: Simon Wunderlich simon@open-mesh.com
65d26cae04b75d029d6686bdee30de92cbee70e7 server.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/server.c b/server.c index bc3b551..ed04f70 100644 --- a/server.c +++ b/server.c @@ -246,6 +246,9 @@ int alfred_server(struct globals *globals) tv.tv_nsec = 0; }
+ if (globals->netsock < 0) + netsock_open(globals); + maxsock = -1; if (globals->netsock > maxsock) maxsock = globals->netsock;