message broker: read also from sealed memory buffer
This commit is contained in:
@@ -122,6 +122,11 @@ func (m *LogBuffer) loopInterval() {
|
||||
m.Unlock()
|
||||
m.flushChan <- toFlush
|
||||
time.Sleep(m.flushInterval)
|
||||
if m.notifyFn != nil {
|
||||
// check whether blocked clients are already disconnected
|
||||
println("notifying log buffer readers")
|
||||
m.notifyFn()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user