Skip to content

Commit

Permalink
split: retier.conn must be guarded by mutex (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
ignoramous authored Jun 28, 2024
1 parent 5c6d68d commit eb162ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Android/app/src/go/intra/split/retrier.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,9 @@ func (r *retrier) Write(b []byte) (int, error) {
// already have replayed b[:n]), and retry.
<-r.retryCompleteFlag
r.mutex.Lock()
c := r.conn
r.mutex.Unlock()
m, err := r.conn.Write(b[n:])
m, err := c.Write(b[n:])
return n + m, err
}
}
Expand Down

0 comments on commit eb162ca

Please sign in to comment.