Skip to content

Commit 90b83d9

Browse files
committed
needs remote synced for bail check also
1 parent 2d7569f commit 90b83d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/session-state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ function validateRecoveryPeers(peers, length) {
13251325

13261326
for (const p of peers) {
13271327
if (p.remoteLength > length) return false
1328-
if (p.remoteLength === 0) return false
1328+
if (p.remoteLength === 0 && !p.remoteSynced) return false
13291329
}
13301330

13311331
return true

0 commit comments

Comments
 (0)