From 451e6d40fa81aa1dff5241e4a5c482ea1dff85f4 Mon Sep 17 00:00:00 2001 From: Juha Alanen Date: Wed, 20 Nov 2019 11:23:52 +0200 Subject: [PATCH] [core] Notify requests about network reachability only when coming back online --- platform/default/src/mbgl/storage/online_file_source.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/default/src/mbgl/storage/online_file_source.cpp b/platform/default/src/mbgl/storage/online_file_source.cpp index a8907d849..f4225bdf3 100644 --- a/platform/default/src/mbgl/storage/online_file_source.cpp +++ b/platform/default/src/mbgl/storage/online_file_source.cpp @@ -158,7 +158,9 @@ public: void setOnlineStatus(const bool status) { online = status; - networkIsReachableAgain(); + if (online) { + networkIsReachableAgain(); + } } uint32_t getMaximumConcurrentRequests() const {