Skip to content

Commit

Permalink
Merge pull request #610 from shivamarora123/Fix/fileDelete
Browse files Browse the repository at this point in the history
Fix callback must be a function
  • Loading branch information
muaz-khan authored May 2, 2020
2 parents cb0c9fa + aa7053f commit 5019be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecordRTC-over-Socketio/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ function merge(socket, fileName) {
console.log('Merging finished !');

// removing audio/video files
fs.unlink(audioFile);
fs.unlink(videoFile);
fs.unlinkSync(audioFile);
fs.unlinkSync(videoFile);
})
.saveToFile(mergedFile);
}

0 comments on commit 5019be4

Please sign in to comment.