Skip to content

Commit

Permalink
Use readFile instead of cat not that it changed
Browse files Browse the repository at this point in the history
  • Loading branch information
WizKid committed Feb 18, 2010
1 parent 65f3bca commit 3ba1b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bittorrent.js
Expand Up @@ -313,7 +313,7 @@ Torrent.prototype = {
// Load the torrent file and check the data in it
var promise = new events.Promise();
var self = this;
fs.cat(this.torrentPath, "binary").addCallback(function(content) {
fs.readFile(this.torrentPath, "binary").addCallback(function(content) {
var torrentObj;
try {
torrentObj = bencode.decode(content);
Expand Down

0 comments on commit 3ba1b0c

Please sign in to comment.