From 0a362b42a492fdc075971ca925c4ea86227ae790 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Sat, 20 Mar 2010 16:15:08 +0100 Subject: [PATCH] client: allow reconnection to gather all data A stray semicolon blocked purge_and_rerequest() to always terminate after the first track, and report failure. --- sync/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync/device.c b/sync/device.c index 23ba492..6ae9a29 100644 --- a/sync/device.c +++ b/sync/device.c @@ -228,7 +228,7 @@ static int purge_and_rerequest(struct sync_device *d) d->data.tracks[i]->keys = NULL; d->data.tracks[i]->num_keys = 0; - if (request_track_data(d->sock, d->data.tracks[i]->name, i)); + if (request_track_data(d->sock, d->data.tracks[i]->name, i)) return 1; } return 0;