bridgev2/portal: fix event loop not stopping
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled

This commit is contained in:
Tulir Asokan 2025-12-13 11:09:09 +02:00
commit cb6f673e7a

View file

@ -381,12 +381,16 @@ func (portal *Portal) eventLoop() {
for i := 0; ; i++ {
select {
case rawEvt := <-portal.events:
if rawEvt == nil {
return
}
if portal.Bridge.Config.AsyncEvents {
go portal.handleSingleEventWithDelayLogging(i, rawEvt)
} else {
portal.handleSingleEventWithDelayLogging(i, rawEvt)
}
case <-deleteCh:
return
}
}
}