diff options
Diffstat (limited to 'libgo/go/old/netchan/common.go')
-rw-r--r-- | libgo/go/old/netchan/common.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/go/old/netchan/common.go b/libgo/go/old/netchan/common.go index 710b63a..d0daf53 100644 --- a/libgo/go/old/netchan/common.go +++ b/libgo/go/old/netchan/common.go @@ -165,9 +165,11 @@ func (cs *clientSet) sync(timeout time.Duration) error { deadline := time.Now().Add(timeout) // seq remembers the clients and their seqNum at point of entry. seq := make(map[unackedCounter]int64) + cs.mu.Lock() for client := range cs.clients { seq[client] = client.seq() } + cs.mu.Unlock() for { pending := false cs.mu.Lock() |