peer-term 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +7 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -909,6 +909,13 @@ class Session {
|
|
|
909
909
|
this._finalizeFile(msg.id);
|
|
910
910
|
break;
|
|
911
911
|
}
|
|
912
|
+
case 'file-cancel': {
|
|
913
|
+
if (this._incomingFiles[msg.id]) {
|
|
914
|
+
delete this._incomingFiles[msg.id];
|
|
915
|
+
this.log(`File upload cancelled by client: ${msg.id}`);
|
|
916
|
+
}
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
912
919
|
}
|
|
913
920
|
}
|
|
914
921
|
|