socket.io-stream icon indicating copy to clipboard operation
socket.io-stream copied to clipboard

blobStream keeps making event calls after stream ended

Open keon opened this issue 8 years ago • 0 comments

Even if I end the stream with stream.end(), the blobStream keeps making event calls until it completes the percentage to 100%.

the log below is an example. <CANCELED cancelUpload function> is the message I made to check if blobStream is still alive. As you can see, it is alive til it reaches 100.

What would be a safe way to end stream and blob stream? thank you in advance.

app:utils:networks:socket <CANCELED cancelUpload function> +6s app.6560d52d54b745c898db.js:29786:9
app:utils:networks:socket [uploadDataSource] canceled +1ms app.6560d52d54b745c898db.js:29786:9
app:utils:networks:socket <CANCELED uploadFile Function> +308ms 30 app.6560d52d54b745c898db.js:29786:9
app:redux:error [SHOW_ERROR] Uploading data sources failed: upload canceld +131ms app.6560d52d54b745c898db.js:29786:9
app:utils:networks:socket Back -> Front: [undefined] undefined +31ms success ended upload stream app.6560d52d54b745c898db.js:29786:9
app:utils:networks:socket callback is not defined +1ms app.6560d52d54b745c898db.js:29786:9
app:utils:networks:socket <CANCELED uploadFile Function> +408ms 30 app.6560d52d54b745c898db.js:29786:9
.
.
.
app:utils:networks:socket <CANCELED uploadFile Function> +4ms 99 app.6560d52d54b745c898db.js:29786:9
app:utils:networks:socket <CANCELED uploadFile Function> +1ms 99 app.6560d52d54b745c898db.js:29786:9
app:utils:networks:socket <CANCELED uploadFile Function> +1ms 100 app.6560d52d54b745c898db.js:29786:9
app:utils:networks:socket <BLOBSTREAM ENDED> +1ms

keon avatar May 04 '16 09:05 keon