From 275600fc44fae65a7c873c842e2c47f93586e563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Georget?= Date: Fri, 30 Oct 2015 10:05:14 +0100 Subject: [PATCH] Defer connection to Studio --- lib/configuration/hooks/studio/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/configuration/hooks/studio/index.js b/lib/configuration/hooks/studio/index.js index f2246c6a4d..294eb7f5a4 100644 --- a/lib/configuration/hooks/studio/index.js +++ b/lib/configuration/hooks/studio/index.js @@ -83,7 +83,7 @@ module.exports = function (strapi) { socket.on('connect', function () { strapi.log.info('Connection with the Studio server found, please wait a few seconds...'); firstConnectionAttempt = false; - _self.connectWithStudio(socket); + process.nextTick(_self.connectWithStudio(socket)); }); socket.on('error', function (err) {