Skip to content

Commit

Permalink
prevent bye packet broadcasting
Browse files Browse the repository at this point in the history
  • Loading branch information
Termina1 committed Nov 29, 2024
1 parent d5462bf commit 6d96062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ func (sync *Syncer) Drain(ctx context.Context, recs protocol.Records) (err error
sync.SetDrainState(ctx, SendNone)
}
err = sync.Host.Drain(sync.logCtx(ctx), recs)
if err == nil {
if err == nil && lit != 'B' {
sync.Host.Broadcast(sync.logCtx(ctx), recs, sync.Name)
}

Expand Down

0 comments on commit 6d96062

Please sign in to comment.