reset FileReceiver on cancel. fixes #751

This commit is contained in:
Danny Coates 2018-02-05 09:11:42 -08:00
parent 755cc4f5ec
commit ce79d7b745
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ export default function(state, emitter) {
} catch (err) {
if (err.message === '0') {
// download cancelled
state.transfer.reset();
return render();
}
console.error(err);