GODT-2266: Pause event stream while sending

This commit is contained in:
James Houlahan
2023-01-25 09:43:58 +01:00
parent 5d4c10c56e
commit e8a778feca
2 changed files with 10 additions and 3 deletions

View File

@ -158,7 +158,7 @@ func (user *User) sendMail(authID string, from string, to []string, r io.Reader)
return nil
})
}, user.apiUserLock, user.apiAddrsLock)
}, user.apiUserLock, user.apiAddrsLock, user.eventLock)
}
// sendWithKey sends the message with the given address key.