Forgot to allocate done channel

This commit is contained in:
Deluan 2020-12-12 21:10:43 -05:00 committed by Joe Stump
parent bed1410e0d
commit 35240465b9
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -144,6 +144,7 @@ func (b *broker) subscribe(r *http.Request) client {
address: r.RemoteAddr,
userAgent: r.UserAgent(),
channel: make(messageChan, 5),
done: make(chan struct{}),
}
// Signal the broker that we have a new client