Skip to content

Commit

Permalink
Merge branch 'bug/mobileminer-stop-start'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwoolls committed Jan 5, 2015
2 parents 0b5a166 + aa87cda commit 4faf8ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions MultiMiner.UX/ViewModels/ApplicationViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3130,7 +3130,17 @@ private void SubmitMiningStatistics(List<MiningStatistics> statisticsList)

//process commands
if (ApplicationConfiguration.MobileMinerRemoteCommands)
{
//if we aren't mining we need another fetch for this machine
if (!statisticsList.Any(sl => sl.MachineName.Equals(Environment.MachineName)))
{
commands.AddRange(MobileMiner.ApiContext.GetCommands(GetMobileMinerUrl(), MobileMinerApiKey,
ApplicationConfiguration.MobileMinerEmailAddress, ApplicationConfiguration.MobileMinerApplicationKey,
new List<string> { Environment.MachineName }));
}

Context.BeginInvoke((Action<List<RemoteCommand>>)ProcessRemoteCommands, commands);
}

mobileMinerSuccess = true;
}
Expand Down

0 comments on commit 4faf8ae

Please sign in to comment.