From 9e7bc91bc01731bb8e38d4106238585addcec65b Mon Sep 17 00:00:00 2001 From: highvoltz Date: Wed, 11 Oct 2017 17:21:02 -0400 Subject: [PATCH] Added a delay before pressing the 'Change Realm' button to avoid the infamous 'You have been disconnected' error. Fixes #49 --- WoW/States/CharacterSelectState.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/WoW/States/CharacterSelectState.cs b/WoW/States/CharacterSelectState.cs index 2a9d3f9..8e2c9cd 100644 --- a/WoW/States/CharacterSelectState.cs +++ b/WoW/States/CharacterSelectState.cs @@ -156,7 +156,9 @@ void ChangeRealm() _wowManager.CloseGameProcess(); return; } - + // Inserts a delay before pressing button because pressing too fast causes the 'You have been disconnected' error. + // See https://github.com/BosslandGmbH/HBRelog/issues/49 + Thread.Sleep(4000); var changeRealmButton = UIObject.GetUIObjectByName