mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 00:27:06 +00:00
fix: ensure doh connections are closed when it is disabled
This commit is contained in:
@ -66,6 +66,10 @@ func New(controller *Controller, userID string) *FakePMAPI {
|
||||
return fakePMAPI
|
||||
}
|
||||
|
||||
func (api *FakePMAPI) CloseConnections() {
|
||||
// NOOP
|
||||
}
|
||||
|
||||
func (api *FakePMAPI) checkAndRecordCall(method method, path string, request interface{}) error {
|
||||
if err := api.checkInternetAndRecordCall(method, path, request); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user