Merge branch 'develop' of ssh://git.mnml.gg:40022/~/mnml into develop

This commit is contained in:
ntr 2019-11-12 16:32:28 +11:00
commit 1d699d1b62

View File

@ -227,7 +227,8 @@ function registerEvents(store) {
}
if (v.phase_end && v.phase === 'Lobby' && !autoReady) {
const autoReadyDelay = Date.parse(v.phase_end) - Date.now() - 1000;
const skip = v.time_control === 'Practice' ? 10000 : 2000;
const autoReadyDelay = Date.parse(v.phase_end) - Date.now() - skip;
autoReady = setTimeout(() => {
ws.sendInstanceReady(v.id);
autoReady = null;