From 53dfa8fe929bfbdf7227e6f9db1f3799cfe0e3e0 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 3 Mar 2008 15:06:41 +0200 Subject: [PATCH] Handle ECONNREFUSED --- src/gps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gps.c b/src/gps.c index 942a341..0af07a1 100644 --- a/src/gps.c +++ b/src/gps.c @@ -299,6 +299,11 @@ if (r != 0) { #endif return FALSE; break; + case ECONNREFUSED: + g_printerr("*** Connection refused.\n"); + gps_disconnect(gps); + return FALSE; + break; default: /* Connection failed. Disconnect and try again later. */ g_printerr("### Connect failed, retrying... %d %d\n", e, r); -- 2.39.5