Skip to content

Commit 06de03a

Browse files
author
nicehashdev
committed
Bug fixes
- crash bug fix
1 parent 69944ec commit 06de03a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/NiceHashBot/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.3.0")]
36-
[assembly: AssemblyFileVersion("1.0.3.0")]
35+
[assembly: AssemblyVersion("1.0.3.2")]
36+
[assembly: AssemblyFileVersion("1.0.3.2")]

src/NiceHashBotLib/APIWrapper.cs

+7-5
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,15 @@ public static List<Order> GetAllOrders(int ServiceLocation, int Algorithm, bool
212212
List<Order> MyOrders = GetMyOrders(ServiceLocation, Algorithm);
213213

214214
// Fill missing data
215-
if (MyOrders!=null)
216-
foreach (Order O1 in MyOrders)
215+
if (MyOrders != null && CachedOList[ServiceLocation, Algorithm].OrderList != null)
217216
{
218-
foreach (Order O2 in CachedOList[ServiceLocation, Algorithm].OrderList)
217+
foreach (Order O1 in MyOrders)
219218
{
220-
if (O2.ID == O1.ID)
221-
O2.BTCAvailable = O1.BTCAvailable;
219+
foreach (Order O2 in CachedOList[ServiceLocation, Algorithm].OrderList)
220+
{
221+
if (O2.ID == O1.ID)
222+
O2.BTCAvailable = O1.BTCAvailable;
223+
}
222224
}
223225
}
224226

0 commit comments

Comments
 (0)