NSCv3: force http load on connect (sometimes onDisconnect is not called)

This commit is contained in:
Milos Kozak 2023-11-22 16:31:18 +01:00
parent 770ad1c4b8
commit 6de44f9675

View file

@ -167,7 +167,8 @@ class NSClientV3Service : DaggerService() {
rxBus.send(EventNSClientNewLog("◄ WS", "Subscribed for: ${response.optString("collections")}"))
// during disconnection updated data is not received
// thus run non WS load to get missing data
nsClientV3Plugin.executeLoop("WS_CONNECT", forceNew = false)
nsClientV3Plugin.initialLoadFinished = false
nsClientV3Plugin.executeLoop("WS_CONNECT", forceNew = true)
true
} else {
rxBus.send(EventNSClientNewLog("◄ WS", "Auth failed"))