From 85b498d76e0edbb3d429c3dfecfe267c5c266c48 Mon Sep 17 00:00:00 2001 From: Galunid Date: Thu, 20 Aug 2020 13:11:02 +0200 Subject: [PATCH] Revert "Kosync network callback (#6489)" (#6535) This reverts commit d90e221a1797ac79c21bad58869013b75480045a. Reverts #6489 since it introduced problems for people having [*]Auto sync now and in the furture & Action when wifi off: prompt. --- plugins/kosync.koplugin/KOSyncClient.lua | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/plugins/kosync.koplugin/KOSyncClient.lua b/plugins/kosync.koplugin/KOSyncClient.lua index 0e5de7270..170fea987 100644 --- a/plugins/kosync.koplugin/KOSyncClient.lua +++ b/plugins/kosync.koplugin/KOSyncClient.lua @@ -1,4 +1,3 @@ -local NetworkMgr = require("ui/network/manager") local UIManager = require("ui/uimanager") local DEBUG = require("dbg") @@ -104,21 +103,6 @@ function KOSyncClient:update_progress( device, device_id, callback) - - local callback_ok = NetworkMgr:willRerunWhenOnline(function() - self:update_progress( - username, - password, - document, - progress, - percentage, - device, - device_id, - callback) - end) - if callback_ok then - return - end self.client:reset_middlewares() self.client:enable('Format.JSON') self.client:enable("GinClient") @@ -153,11 +137,6 @@ function KOSyncClient:get_progress( password, document, callback) - - if NetworkMgr:willRerunWhenOnline(function() self:get_progress(username, password, document, callback) end) then - return - end - self.client:reset_middlewares() self.client:enable('Format.JSON') self.client:enable("GinClient")