Skip to content

Commit

Permalink
fix for crash when API not accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshirothefist committed Feb 29, 2016
1 parent aa7d25f commit 69944ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NiceHashBotLib/APIWrapper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
Expand Down Expand Up @@ -212,6 +212,7 @@ 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)
{
foreach (Order O2 in CachedOList[ServiceLocation, Algorithm].OrderList)
Expand Down

0 comments on commit 69944ec

Please sign in to comment.