mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
spectator reconnects and stuff
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
|
||||
<title>Multi Roomba Rover</title>
|
||||
<script type="module" crossorigin src="/assets/index-DkDG6KGq.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DoVsLZ1w.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-B88Ix9u6.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -24,12 +24,7 @@ function enforceLockdown() {
|
||||
|
||||
io.on('connection', (socket) => {
|
||||
if (getMode() === MODES.LOCKDOWN && !isLockdownAdmin(socket)) {
|
||||
socket.data.lockdownTimer = setTimeout(() => {
|
||||
if (!isLockdownAdmin(socket)) {
|
||||
disconnectForLockdown(socket);
|
||||
}
|
||||
}, 10000);
|
||||
socket.once('disconnect', () => clearLockdownTimer(socket));
|
||||
disconnectForLockdown(socket);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user