mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
feat(GODT-3146): keep imap/smtp server always on.
This commit is contained in:
@ -108,6 +108,16 @@ func (sm *Service) Init(ctx context.Context, group *async.Group, subscription ev
|
||||
})
|
||||
})
|
||||
|
||||
if err := sm.serveIMAP(ctx); err != nil {
|
||||
sm.log.WithError(err).Error("Failed to start IMAP server")
|
||||
return err
|
||||
}
|
||||
|
||||
if err := sm.serveSMTP(ctx); err != nil {
|
||||
sm.log.WithError(err).Error("Failed to start SMTP server")
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -710,7 +720,7 @@ func (sm *Service) handleSetGluonDir(ctx context.Context, newGluonDir string) er
|
||||
}
|
||||
|
||||
func (sm *Service) shouldStartServers() bool {
|
||||
return sm.loadedUserCount >= 1
|
||||
return true // sm.loadedUserCount >= 1
|
||||
}
|
||||
|
||||
type smRequestClose struct{}
|
||||
|
||||
Reference in New Issue
Block a user