mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-10 18:10:54 +09:00
Return back empty derived tree check
This commit is contained in:
parent
fdc190c70f
commit
417baabeee
1 changed files with 3 additions and 0 deletions
|
@ -289,6 +289,9 @@ func (s *syncTree) checkAlive() (err error) {
|
|||
func (s *syncTree) SyncWithPeer(ctx context.Context, p peer.Peer) (err error) {
|
||||
s.Lock()
|
||||
defer s.Unlock()
|
||||
if objecttree.IsEmptyDerivedTree(s.ObjectTree) {
|
||||
return
|
||||
}
|
||||
protoVersion, err := peer.CtxProtoVersion(p.Context())
|
||||
// this works with old protocol
|
||||
if err != nil || protoVersion <= secureservice.ProtoVersion {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue