Skip to content

Commit

Permalink
Merge pull request #1795 from msimerson/1791-fixups
Browse files Browse the repository at this point in the history
fixing one bug hilighted another
  • Loading branch information
msimerson authored Feb 1, 2017
2 parents ffb97cf + 9c02964 commit c715aaf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
4 changes: 3 additions & 1 deletion bin/haraka
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ function mkDir (dstPath) {
}
catch (e) {
// File exists
console.error(e);
if (e.errno == 17) {
warning(e.message);
}
Expand Down Expand Up @@ -191,11 +192,12 @@ function copyFile (srcFile, dstFile) {
}
catch (e) {
// File NOT exists
if (e.errno == 2) {
if (e.errno == -2) {
fs.writeFileSync(dstFile, fs.readFileSync(srcFile));
create(dstFile)
}
else {
console.log('copy ' + srcFile + ' to ' + dstFile);
throw e;
}
}
Expand Down
5 changes: 0 additions & 5 deletions plugins/limit.js

This file was deleted.

6 changes: 0 additions & 6 deletions plugins/redis.js

This file was deleted.

2 changes: 0 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,6 @@ Server.init_master_respond = function (retval, msg) {
return;
}

if (!c.outbound) return;

// Running under cluster, fork children here, so that
// cluster events can be registered in init_master hooks.
outbound.scan_queue_pids(function (err, pids) {
Expand Down

0 comments on commit c715aaf

Please sign in to comment.