client.go | 1 + diff --git a/client.go b/client.go index f2a5d77d3e789c28e2d6beab32585bab113d4d0f..2b0b6d155c25dbc644a0e0645ef05e008a225ed3 100644 --- a/client.go +++ b/client.go @@ -439,6 +439,7 @@ } 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