disallow negative values in ExtendExpiry, fix nil map err
This commit is contained in:
@@ -480,6 +480,9 @@ func (st *Storage) storeInvites() error {
|
||||
}
|
||||
|
||||
func (st *Storage) loadUsers() error {
|
||||
if st.users == nil {
|
||||
st.users = map[string]time.Time{}
|
||||
}
|
||||
st.usersLock.Lock()
|
||||
defer st.usersLock.Unlock()
|
||||
temp := map[string]time.Time{}
|
||||
|
||||
Reference in New Issue
Block a user