Forgot to allocate done channel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user