Skip to content

Commit 2b2b3ce

Browse files
code
Signed-off-by: Marino Faggiana <marino.faggiana@nextcloud.com>
1 parent f7bd1ae commit 2b2b3ce

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

iOSClient/Networking/NCNetworking+WebDAV.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ extension NCNetworking {
548548
await NCManageDatabase.shared.renameMetadata(fileNameNew: fileNameNew, ocId: ocId, status: self.global.metadataStatusWaitRename)
549549
delegate.transferReloadDataSource(serverUrl: serverUrl, requestData: false, status: self.global.metadataStatusWaitRename)
550550
}
551+
552+
// START Network process
553+
NotificationCenter.default.postOnGlobal(name: NCGlobal.shared.notificationCenterNetworkProcess, second: 0.1)
551554
}
552555
}
553556
}

iOSClient/Networking/NCNetworkingProcess.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ actor NCNetworkingProcess {
196196
return
197197
}
198198

199-
guard !currentAccount.isEmpty,
199+
guard networking.isOnline,
200+
!currentAccount.isEmpty,
200201
networking.noServerErrorAccount(currentAccount)
201202
else {
202203
return

0 commit comments

Comments
 (0)