Skip to content

Commit

Permalink
SOURCE_INTERPRETER: Reset address cycle on spawn
Browse files Browse the repository at this point in the history
If a source interpreter has to be spawned then reset the address cycle on the
source object so that it has a chance to try all possible addresses once more.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
  • Loading branch information
kinnison committed Dec 27, 2013
1 parent f8e90af commit ca0609f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cherokee/source_interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,11 @@ cherokee_source_interpreter_spawn (cherokee_source_interpreter_t *src,
return ret;
}

/* Since we managed to spawn something, clear any current address
* in the source so that it can retry connecting from the top.
*/
src->source.addr_current = NULL;

return ret_ok;
}

Expand Down

0 comments on commit ca0609f

Please sign in to comment.