mod_http_upload_quota: Don't forget to set timeout

This commit is contained in:
Holger Weiss 2015-10-24 18:26:32 +02:00
parent d4d5200c5b
commit b88e766571
1 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,8 @@ handle_cast({handle_slot_request, #jid{user = U, server = S} = JID, Path, Size},
[jlib:jid_to_string(JID)]),
enforce_quota(Path, Size, OldSize, SoftQuota, HardQuota)
end,
{noreply, State#state{disk_usage = dict:store({U, S}, NewSize, DiskUsage)}};
NewState = State#state{disk_usage = dict:store({U, S}, NewSize, DiskUsage)},
{noreply, NewState, remaining_timeout(State)};
handle_cast(Request, State) ->
?ERROR_MSG("Got unexpected request: ~p", [Request]),
{noreply, State, remaining_timeout(State)}.