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) {