File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
LiveControlGateway/LifetimeManager Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,18 @@ public async Task<bool> InitAsync(CancellationToken cancellationToken)
87
87
{
88
88
await using var db = await _dbContextFactory . CreateDbContextAsync ( cancellationToken ) ;
89
89
await UpdateShockers ( db , cancellationToken ) ;
90
- #pragma warning disable CS4014
91
- LucTask . Run ( UpdateLoop ) ;
92
- #pragma warning restore CS4014
93
90
}
94
91
catch ( Exception e )
95
92
{
93
+ // (╯°□°)╯︵ ┻━┻
96
94
_logger . LogError ( e , "Error initializing OpenShock Hub lifetime" ) ;
97
95
return false ;
98
96
}
99
97
98
+ #pragma warning disable CS4014
99
+ LucTask . Run ( UpdateLoop ) ;
100
+ #pragma warning restore CS4014
101
+
100
102
_state = HubLifetimeState . Idle ; // We are fully setup, we can go back to idle state
101
103
return true ;
102
104
}
You can’t perform that action at this time.
0 commit comments