mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/portal: fix event loop not stopping
Some checks failed
Some checks failed
This commit is contained in:
parent
9dc3772c47
commit
cb6f673e7a
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue