Fix panic during restarting the bridge

This commit is contained in:
Michal Horejsek
2020-12-10 13:09:45 +01:00
parent 9d576beeb8
commit 79465571d7
2 changed files with 9 additions and 1 deletions

View File

@ -208,7 +208,11 @@ func (s *FrontendQt) watchEvents() {
s.Qml.ShowWindow() s.Qml.ShowWindow()
case <-restartBridgeCh: case <-restartBridgeCh:
s.Qml.SetIsRestarting(true) s.Qml.SetIsRestarting(true)
s.App.Quit() // watchEvents is started in parallel with the Qt app.
// If the event comes too early, app doesn't have to be ready yet.
if s.App != nil {
s.App.Quit()
}
case address := <-addressChangedCh: case address := <-addressChangedCh:
s.Qml.NotifyAddressChanged(address) s.Qml.NotifyAddressChanged(address)
case address := <-addressChangedLogoutCh: case address := <-addressChangedLogoutCh:

View File

@ -9,3 +9,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
### Removed ### Removed
### Fixed ### Fixed
* GODT-135 Support parameters in SMTP `FROM MAIL` command, such as `BODY=7BIT`, or empty value `FROM MAIL:<>` used by some clients.
* GODT-338 GODT-781 GODT-857 GODT-866 Flaky tests.
* GODT-773 Replace old dates with birthday of RFC822 to not crash Apple Mail. Original is available under `X-Original-Date` header.
* GODT-922 Fix panic during restarting the bridge.