Browse Source

Make sure we enable flow for new connections

pull/29/head
Victor Elias 4 years ago
parent
commit
eafe892371
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      publish.go

+ 4
- 0
publish.go View File

@ -230,6 +230,10 @@ func (publisher *Publisher) startNotifyHandlers() {
} }
func (publisher *Publisher) startNotifyFlowHandler(notifyFlowChan chan bool) { func (publisher *Publisher) startNotifyFlowHandler(notifyFlowChan chan bool) {
publisher.disablePublishDueToFlowMux.Lock()
publisher.disablePublishDueToFlow = false
publisher.disablePublishDueToFlowMux.Unlock()
// Listeners for active=true flow control. When true is sent to a listener, // Listeners for active=true flow control. When true is sent to a listener,
// publishing should pause until false is sent to listeners. // publishing should pause until false is sent to listeners.
for ok := range notifyFlowChan { for ok := range notifyFlowChan {


Loading…
Cancel
Save