Forgot to allocate done channel

This commit is contained in:
Deluan 2020-12-12 21:10:43 -05:00
parent 8b92796a5c
commit e27d917bd4

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