fix: ensure doh connections are closed when it is disabled

This commit is contained in:
James Houlahan
2020-06-17 10:52:53 +02:00
parent 9241a9bdbf
commit 02804d067c
7 changed files with 33 additions and 6 deletions

View File

@ -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