reset FileReceiver on cancel. fixes #751
This commit is contained in:
parent
755cc4f5ec
commit
ce79d7b745
@ -179,6 +179,7 @@ export default function(state, emitter) {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.message === '0') {
|
if (err.message === '0') {
|
||||||
// download cancelled
|
// download cancelled
|
||||||
|
state.transfer.reset();
|
||||||
return render();
|
return render();
|
||||||
}
|
}
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user