mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-11 18:20:28 +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) {
|
func (s *syncTree) SyncWithPeer(ctx context.Context, p peer.Peer) (err error) {
|
||||||
s.Lock()
|
s.Lock()
|
||||||
defer s.Unlock()
|
defer s.Unlock()
|
||||||
|
if objecttree.IsEmptyDerivedTree(s.ObjectTree) {
|
||||||
|
return
|
||||||
|
}
|
||||||
protoVersion, err := peer.CtxProtoVersion(p.Context())
|
protoVersion, err := peer.CtxProtoVersion(p.Context())
|
||||||
// this works with old protocol
|
// this works with old protocol
|
||||||
if err != nil || protoVersion <= secureservice.ProtoVersion {
|
if err != nil || protoVersion <= secureservice.ProtoVersion {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue