Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
attempt to fix reported crash when datasource times out
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjorn committed Apr 11, 2019
1 parent 03fdb57 commit 920755d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions FloatingGlucose/FloatingGlucose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ private async void LoadGlucoseValue()
{
this.SetErrorState(ex);
}
catch(System.Threading.Tasks.TaskCanceledException ex)
{
// This might happen when a datasource attempts to get data from a remote location,
// but for some reason that fails
this.SetErrorState(ex);
}
catch (HttpRequestException ex)
{
this.SetErrorState(ex);
Expand Down
2 changes: 1 addition & 1 deletion FloatingGlucose/buildscripts/create-zip-file.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function createReleaseZipFile(){

$files = ls . | where { -not ($_.name.EndsWith(".vshost.exe") -or $_.name.EndsWith(".zip")) }


echo "writing zip to $outpath"
$files | out-zip -zipfilename $outpath -files $files
return $zipfilename
}
Expand Down
4 changes: 2 additions & 2 deletions FloatingGlucose/installer/floatingglucosenosign.iss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
;should be set via iscc
;cd installer
;"%programfiles(x86)%/Inno Setup 5/ISCC.exe" floatingglucose.iss
;#define MyAppVersion "0.9.9test"
;#define ReleaseType "Release"
#define MyAppVersion "1.5.3"
#define ReleaseType "Release+NoSign"

;setting up signing:
; in inno setup, go to tools->configure sign tools
Expand Down

0 comments on commit 920755d

Please sign in to comment.