Starts up new tasks of nothing running

This commit is contained in:
Travis
2013-01-01 19:54:09 -08:00
parent 350dc25c68
commit 4e2a543f6e

View File

@@ -92,6 +92,7 @@ func ProxyFunc(w http.ResponseWriter, req *http.Request) {
fmt.Println("err type:", etype)
w.WriteHeader(http.StatusInternalServerError)
if etype == reflect.TypeOf(net.OpError{}) { // couldn't figure out a better way to do this
fmt.Println("It's a network error, so we're going to start new task.")
// start new worker
payload := map[string]interface{}{
"token": route.Token,