From 1ae18fecf87fc141a7942bc4ca8b8743d85d6c35 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Wed, 17 Apr 2019 16:46:04 +0200 Subject: [PATCH] Change timeout to 20s Former-commit-id: dca0d08a06c27259cdaaf0138024f53c6c93d94e --- client/src/lib.rs | 2 +- server/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/lib.rs b/client/src/lib.rs index bd9a7ae61f..3e0eeaa217 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -26,7 +26,7 @@ use common::{ msg::{ClientMsg, ServerMsg}, }; -const SERVER_TIMEOUT: f64 = 5.0; // Seconds +const SERVER_TIMEOUT: f64 = 20.0; // Seconds pub enum Event { Chat(String), diff --git a/server/src/lib.rs b/server/src/lib.rs index 9b43de8e82..0eb84959b5 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -25,7 +25,7 @@ use threadpool::ThreadPool; use vek::*; use world::World; -const CLIENT_TIMEOUT: f64 = 5.0; // Seconds +const CLIENT_TIMEOUT: f64 = 20.0; // Seconds pub enum Event { ClientConnected { entity: EcsEntity },