File tree 1 file changed +15
-12
lines changed
1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -126,22 +126,25 @@ private async Task UpdateSilentlyAsync()
126
126
return ;
127
127
}
128
128
129
- if ( appliedEntry ! = null )
129
+ if ( appliedEntry = = null )
130
130
{
131
- await ChangelogFetcher . FetchAsync ( ) . ToObservable ( )
132
- . Timeout ( TimeSpan . FromSeconds ( 30 ) )
133
- . SelectMany ( x => BlobCache . LocalMachine . InsertObject ( BlobCacheKeys . Changelog , x ) )
134
- . LoggedCatch ( this , Observable . Return ( Unit . Default ) , "Could not to fetch changelog" )
135
- . ToTask ( ) ;
131
+ this . Log ( ) . Info ( "No update available" ) ;
132
+ return ;
133
+ }
136
134
137
- lock ( this . updateLock )
138
- {
139
- this . updateRun = true ;
140
- this . settings . IsUpdated = true ;
141
- }
135
+ await ChangelogFetcher . FetchAsync ( ) . ToObservable ( )
136
+ . Timeout ( TimeSpan . FromSeconds ( 30 ) )
137
+ . SelectMany ( x => BlobCache . LocalMachine . InsertObject ( BlobCacheKeys . Changelog , x ) )
138
+ . LoggedCatch ( this , Observable . Return ( Unit . Default ) , "Could not to fetch changelog" )
139
+ . ToTask ( ) ;
142
140
143
- this . Log ( ) . Info ( "Updated to version {0}" , appliedEntry . Version ) ;
141
+ lock ( this . updateLock )
142
+ {
143
+ this . updateRun = true ;
144
+ this . settings . IsUpdated = true ;
144
145
}
146
+
147
+ this . Log ( ) . Info ( "Updated to version {0}" , appliedEntry . Version ) ;
145
148
}
146
149
}
147
150
}
You can’t perform that action at this time.
0 commit comments