diff --git a/index.js b/index.js index 66fc1fa..ad530dc 100644 --- a/index.js +++ b/index.js @@ -79,6 +79,7 @@ var new_client = function(sdk_key, config) { }); } else { process.nextTick(function() { + init_complete = true; client.emit('ready'); }); }