{"action":"closed","issue":{"url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/1459","labels_url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/1459/labels{/name}","comments_url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/1459/comments","events_url":"https://api.github.com/repos/FineUploader/fine-uploader/issues/1459/events","html_url":"https://github.com/FineUploader/fine-uploader/issues/1459","id":101636513,"number":1459,"title":"uploader.retry(id) is ignored inside onStatusChange callback","user":{"login":"Korijn","id":1882046,"avatar_url":"https://avatars.githubusercontent.com/u/1882046?v=3","gravatar_id":"","url":"https://api.github.com/users/Korijn","html_url":"https://github.com/Korijn","followers_url":"https://api.github.com/users/Korijn/followers","following_url":"https://api.github.com/users/Korijn/following{/other_user}","gists_url":"https://api.github.com/users/Korijn/gists{/gist_id}","starred_url":"https://api.github.com/users/Korijn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Korijn/subscriptions","organizations_url":"https://api.github.com/users/Korijn/orgs","repos_url":"https://api.github.com/users/Korijn/repos","events_url":"https://api.github.com/users/Korijn/events{/privacy}","received_events_url":"https://api.github.com/users/Korijn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-18T11:40:40Z","updated_at":"2015-08-18T14:15:23Z","closed_at":"2015-08-18T14:15:23Z","body":"When using code as follows:\r\n\r\n```javascript\r\nuploader = new qq.azure.FineUploader({\r\n    callbacks: {\r\n        onStatusChange: function (id, oldStatus, newStatus) {\r\n            if (newStatus === qq.status.UPLOAD_FAILED) {\r\n                uploader.retry(id);\r\n```\r\n\r\nThe `retry` call gets ignored.\r\n\r\nThis works:\r\n\r\n```javascript\r\nuploader = new qq.azure.FineUploader({\r\n    callbacks: {\r\n        onStatusChange: function (id, oldStatus, newStatus) {\r\n            if (newStatus === qq.status.UPLOAD_FAILED) {\r\n                setTimeout(function () {\r\n                    uploader.retry(id);\r\n                }, 1000);\r\n```\r\n\r\nI guess this comes down to the flow in which the `onStatusChange` callback is called?"}}