diff --git a/QSB/QSBNetworkManager.cs b/QSB/QSBNetworkManager.cs index 60255e0e5..d295de1f0 100644 --- a/QSB/QSBNetworkManager.cs +++ b/QSB/QSBNetworkManager.cs @@ -78,10 +78,14 @@ public override void Awake() { _kcpTransport = gameObject.AddComponent(); + // KCP uses milliseconds + _kcpTransport.Timeout = QSBCore.DebugSettings.Timeout * 1000; } { _steamTransport = gameObject.AddComponent(); + // Steam uses seconds + _steamTransport.Timeout = QSBCore.DebugSettings.Timeout; } { diff --git a/QSB/Utility/DebugSettings.cs b/QSB/Utility/DebugSettings.cs index ee4b4569c..725921fa1 100644 --- a/QSB/Utility/DebugSettings.cs +++ b/QSB/Utility/DebugSettings.cs @@ -54,4 +54,10 @@ public class DebugSettings [JsonProperty("greySkybox")] private bool _greySkybox; public bool GreySkybox => DebugMode && _greySkybox; + + /// + /// Timeout in seconds + /// + [JsonProperty("timeout")] + public int Timeout = 25; }