From 173d19ee6aefb7d467f647e18f60f743e8b41fb0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 13 Feb 2018 15:05:02 -0800 Subject: [PATCH] modules/client/sync: Give client more async() after /sync 408. --- modules/client/sync.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/client/sync.cc b/modules/client/sync.cc index c82ffd551..30258c60b 100644 --- a/modules/client/sync.cc +++ b/modules/client/sync.cc @@ -268,7 +268,8 @@ try *client, http::REQUEST_TIMEOUT }; - client->close(net::dc::SSL_NOTIFY, net::close_ignore); + client->longpoll = false; + client->async(); } catch(const std::exception &e) {