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 oneThis 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