From 495082a60ab1a6e08a8517af476bcf10c758e642 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 5 Nov 2013 00:06:40 +1100 Subject: [PATCH] Set the event condition locker in client Needed for WaitAll, albeit not actually triggered anywhere yet. --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index f2a5d77d..2b0b6d15 100644 --- a/client.go +++ b/client.go @@ -439,6 +439,7 @@ func (cl *Client) TorrentReadAt(ih InfoHash, off int64, p []byte) (n int, err er func (c *Client) Start() { c.mu = &c.Mutex + c.event.L = c.mu c.torrents = make(map[InfoHash]*Torrent) if c.HalfOpenLimit == 0 { c.HalfOpenLimit = 10 -- 2.48.1