fix "Error: read ECONNRESET" when Poseidon stream is restarted
parent
5fcdd860e0
commit
c5c3743f59
|
@ -1884,8 +1884,10 @@ module.exports = function(s,config,lang,app){
|
|||
res.write(init);
|
||||
mp4frag.pipe(res);
|
||||
res.on('close', () => {
|
||||
mp4frag.unpipe(res);
|
||||
});
|
||||
try{
|
||||
mp4frag.unpipe(res)
|
||||
}catch(err){}
|
||||
})
|
||||
}
|
||||
}
|
||||
},res,req);
|
||||
|
|
Loading…
Reference in New Issue