fix "Error: read ECONNRESET" when Poseidon stream is restarted

merge-requests/33/head
Moe 2018-10-07 11:59:01 -07:00
parent 5fcdd860e0
commit c5c3743f59
1 changed files with 4 additions and 2 deletions

View File

@ -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);