Start the platform code only after 3 secs

This commit is contained in:
Girish Ramakrishnan
2018-01-31 22:16:06 -08:00
parent 1f5ecd5ff8
commit 17128f0b56

View File

@@ -274,9 +274,9 @@ function activate(username, password, email, displayName, ip, auditSource, callb
eventlog.add(eventlog.ACTION_ACTIVATE, auditSource, { });
cloudron.onActivated();
callback(null, { token: token, expires: expires });
setTimeout(cloudron.onActivated, 3000); // hack for now to not block the above http response
});
});
});