From 849db3b858be20d271ad70598dbf86ff53f7eef2 Mon Sep 17 00:00:00 2001
From: Erik Schamper <mrwafflewaffle@aim.com>
Date: Fri, 2 May 2014 00:57:05 +0200
Subject: [PATCH] Add a return statement to the callback

To prevent a "callback already called".
---
 src/postTools.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/postTools.js b/src/postTools.js
index 0bba2135ef..27af4631bd 100644
--- a/src/postTools.js
+++ b/src/postTools.js
@@ -24,7 +24,7 @@ var winston = require('winston'),
 			}
 
 			if(!Array.isArray(pids) || !pids.length) {
-				callback(null, false);
+				return callback(null, false);
 			}
 
 			callback(null, parseInt(pids[0], 10) === parseInt(pid, 10));