antoniop
committed
on 07 Oct 20
Always make sure to clear any previously scheduled upload, before scheduling another one

This handles the case when a connection times out … Show more
Always make sure to clear any previously scheduled upload, before scheduling another one

This handles the case when a connection times out (readyState 4 and status = 0). In this case both the rescheduling in the readystatechange handler and in the timeout handler would be executed.

Show less