File tree Expand file tree Collapse file tree 1 file changed +34
-4
lines changed
Expand file tree Collapse file tree 1 file changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,23 @@ public async Task<IComponentAgent> GetComponentAgent(Type agentType, bool isNew
116116 {
117117 async Task Worker ( )
118118 {
119- await comp . Active ( ) ;
120- await agent . Active ( ) ;
119+ try
120+ {
121+ await comp . Active ( ) ;
122+ }
123+ catch ( Exception e )
124+ {
125+ LogHelper . Fatal ( e ) ;
126+ }
127+
128+ try
129+ {
130+ await agent . Active ( ) ;
131+ }
132+ catch ( Exception e )
133+ {
134+ LogHelper . Fatal ( e ) ;
135+ }
121136 }
122137
123138 await SendAsyncWithoutCheck ( Worker ) ;
@@ -136,8 +151,23 @@ async Task Worker()
136151 {
137152 async Task Worker ( )
138153 {
139- await component . Active ( ) ;
140- await agent . Active ( ) ;
154+ try
155+ {
156+ await component . Active ( ) ;
157+ }
158+ catch ( Exception e )
159+ {
160+ LogHelper . Fatal ( e ) ;
161+ }
162+
163+ try
164+ {
165+ await agent . Active ( ) ;
166+ }
167+ catch ( Exception e )
168+ {
169+ LogHelper . Fatal ( e ) ;
170+ }
141171 }
142172
143173 await SendAsyncWithoutCheck ( Worker ) ;
You can’t perform that action at this time.
0 commit comments