From 8f14daeb6c1aa9257e8b350f96b4e07a7da86549 Mon Sep 17 00:00:00 2001 From: Simon Murtha-Smith Date: Fri, 16 Mar 2012 14:43:15 -0700 Subject: [PATCH] cbDone on nextTick in twitter lib.getMe function as it can and should be async --- Connectors/Twitter/lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connectors/Twitter/lib.js b/Connectors/Twitter/lib.js index 5b99f8bfe..167326307 100644 --- a/Connectors/Twitter/lib.js +++ b/Connectors/Twitter/lib.js @@ -29,7 +29,7 @@ exports.init = function(theAuth, theBase, srcdir) { exports.getMe = function(arg, cbEach, cbDone) { if(auth.profile && auth.profile.screen_name) { cbEach(auth.profile); - return cbDone(); + return process.nextTick(cbDone); } arg.path = '/account/verify_credentials.json'; return getOne(arg,function(err,me){