mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
io/router: don't clear event queue before cancel events
There may be unrelated events in the queue, so it's not appropriate to clear the queue just because an input Cancel event occurs. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -137,12 +137,6 @@ func (h *handlerEvents) init() {
|
||||
}
|
||||
}
|
||||
|
||||
func (h *handlerEvents) Set(k event.Tag, evts []event.Event) {
|
||||
h.init()
|
||||
h.handlers[k] = evts
|
||||
h.hadEvents = true
|
||||
}
|
||||
|
||||
func (h *handlerEvents) Add(k event.Tag, e event.Event) {
|
||||
h.init()
|
||||
h.handlers[k] = append(h.handlers[k], e)
|
||||
|
||||
Reference in New Issue
Block a user