Defer connection to Studio

This commit is contained in:
Aurélien Georget 2015-10-30 10:05:14 +01:00
parent 67de1b791f
commit 275600fc44

View File

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