Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: collaborator disconnect timeout is in ms
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Feb 6, 2023
commit 19181c0d367377faf73ca7f53cc26525c48c9a47
4 changes: 2 additions & 2 deletions src/services/PollingBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ class PollingBackend {
if (this.#syncService.checkIdle()) {
return
}
const disconnect = Date.now() / 1000 - COLLABORATOR_DISCONNECT_TIME
const alive = sessions.filter((s) => s.lastContact > disconnect)
const disconnect = Date.now() - COLLABORATOR_DISCONNECT_TIME
const alive = sessions.filter((s) => s.lastContact * 1000 > disconnect)
if (alive.length < 2) {
this.maximumRefetchTimer()
} else {
Expand Down