diff --git a/HearthWatcher/PVPDungeonRunWatcher.cs b/HearthWatcher/PVPDungeonRunWatcher.cs index ade52ffea..de31c391a 100644 --- a/HearthWatcher/PVPDungeonRunWatcher.cs +++ b/HearthWatcher/PVPDungeonRunWatcher.cs @@ -72,7 +72,12 @@ public bool Update() public bool UpdatePVPDungeonInfo() { - var pvpDungeonInfo = Reflection.Client.GetPVPDungeonInfo(); + DungeonInfo pvpDungeonInfo = null; + using(_ = Reflection.ClientReadTimeout(10000)) + { + pvpDungeonInfo = Reflection.Client.GetPVPDungeonInfo(); + } + if(pvpDungeonInfo != null) { if(pvpDungeonInfo.RunActive) diff --git a/Hearthstone Deck Tracker/Hearthstone/CollectionHelper.cs b/Hearthstone Deck Tracker/Hearthstone/CollectionHelper.cs index c9a5e3620..574657ed9 100644 --- a/Hearthstone Deck Tracker/Hearthstone/CollectionHelper.cs +++ b/Hearthstone Deck Tracker/Hearthstone/CollectionHelper.cs @@ -15,10 +15,15 @@ public static class CollectionHelpers private static async Task LoadCollection(Key key) { - var data = await Task.Run(() => new - { - Collection = Reflection.Client.GetFullCollection(), - BattleTag = Reflection.Client.GetBattleTag() + var data = await Task.Run(() => { + using(_ = Reflection.ClientReadTimeout(10000)) + { + return new + { + Collection = Reflection.Client.GetFullCollection(), + BattleTag = Reflection.Client.GetBattleTag() + }; + } }); if(data.Collection?.Cards.Any() ?? false) {