fix
This commit is contained in:
parent
fde4b963e9
commit
ecc9b8a180
@ -56,7 +56,6 @@ func getLockedRandomClient() (*ChirpClient, error) {
|
||||
|
||||
func setClientBusy(userID64 int64, from time.Time, duration time.Duration) error {
|
||||
if clt, ok := getLockedClient(userID64, false); ok {
|
||||
t := time.Now().UTC()
|
||||
if from.UTC().Add(duration).After(time.Now().UTC()) {
|
||||
clt.CWIdle = false
|
||||
clt.CWBusyUntil = from.UTC().Add(duration)
|
||||
|
Loading…
Reference in New Issue
Block a user