client: do not purge data when reconnetion failed
This commit is contained in:
parent
0a362b42a4
commit
88e9a4bf48
@ -238,7 +238,7 @@ void sync_update(struct sync_device *d, double row)
|
|||||||
{
|
{
|
||||||
if (d->sock == INVALID_SOCKET) {
|
if (d->sock == INVALID_SOCKET) {
|
||||||
d->sock = server_connect(REMOTE_HOST, REMOTE_PORT);
|
d->sock = server_connect(REMOTE_HOST, REMOTE_PORT);
|
||||||
if (purge_and_rerequest(d))
|
if (d->sock != INVALID_SOCKET && purge_and_rerequest(d))
|
||||||
goto sockerr;
|
goto sockerr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user