changeset 16788:b78c705bbb8d

director: Directors weren't always marked as restarted when they were.
author Timo Sirainen <tss@iki.fi>
date Fri, 20 Sep 2013 10:12:24 +0300
parents 22a3ef9a006d
children 5d43c926eb97
files src/director/director-connection.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/director/director-connection.c	Fri Sep 20 10:11:45 2013 +0300
+++ b/src/director/director-connection.c	Fri Sep 20 10:12:24 2013 +0300
@@ -644,8 +644,8 @@
 		/* already have this. just reset its last_network_failure
 		   timestamp, since it might be up now. */
 		host->last_network_failure = 0;
-		if (host->last_seq != 0) {
-			/* it also may have been restarted, reset last_seq */
+		if (host->last_seq != 0 || host->last_sync_seq != 0) {
+			/* it also may have been restarted, reset its state */
 			director_host_restarted(host);
 			forward = TRUE;
 		}