Fixed bug where changing rate limit sometimes didn't work

If the download rate limit or upload rate limit was changed
from no limit to an actual limit, or from a limit to no limit
the change was not applied.