Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
- crash bug fix
  • Loading branch information
nicehashdev committed Mar 7, 2016
1 parent 69944ec commit 06de03a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/NiceHashBot/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.3.0")]
[assembly: AssemblyFileVersion("1.0.3.0")]
[assembly: AssemblyVersion("1.0.3.2")]
[assembly: AssemblyFileVersion("1.0.3.2")]
12 changes: 7 additions & 5 deletions src/NiceHashBotLib/APIWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,15 @@ public static List<Order> GetAllOrders(int ServiceLocation, int Algorithm, bool
List<Order> MyOrders = GetMyOrders(ServiceLocation, Algorithm);

// Fill missing data
if (MyOrders!=null)
foreach (Order O1 in MyOrders)
if (MyOrders != null && CachedOList[ServiceLocation, Algorithm].OrderList != null)
{
foreach (Order O2 in CachedOList[ServiceLocation, Algorithm].OrderList)
foreach (Order O1 in MyOrders)
{
if (O2.ID == O1.ID)
O2.BTCAvailable = O1.BTCAvailable;
foreach (Order O2 in CachedOList[ServiceLocation, Algorithm].OrderList)
{
if (O2.ID == O1.ID)
O2.BTCAvailable = O1.BTCAvailable;
}
}
}

Expand Down

0 comments on commit 06de03a

Please sign in to comment.