From 63f1211979d79e42dd03f13a027d2bc56b976c0c Mon Sep 17 00:00:00 2001 From: Travis Date: Tue, 1 Jan 2013 20:17:19 -0800 Subject: [PATCH] Missing a return statement --- src/router/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/router/router.go b/src/router/router.go index 1ce8e399e..203bdbbbc 100644 --- a/src/router/router.go +++ b/src/router/router.go @@ -98,6 +98,7 @@ func ProxyFunc(w http.ResponseWriter, req *http.Request) { if len(route.Destinations) > 1 { fmt.Println("It's a network error, removing this destination from routing table.") route.Destinations = append(route.Destinations[:destIndex], route.Destinations[destIndex+1:]...) + return } else { fmt.Println("It's a network error and no other destinations available so we're going to start new task.") }