diff --git a/index.js b/index.js index afa9e25..056e2d7 100644 --- a/index.js +++ b/index.js @@ -222,7 +222,7 @@ io.on('connection', async function (socket) { let writeStream = fs.createWriteStream(file); socket.emit('modaldata', 'Downloading: ' + file); try { - for await (var fileStream of ipfs.cat(cid, {'timeout': 10000})) { + for await (var fileStream of ipfs.cat(cid, {'timeout': 20000})) { writeStream.write(fileStream); }; writeStream.end();