File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1211,25 +1211,25 @@ internal static string GetAssemblyFileVersion(Assembly assembly)
1211
1211
1212
1212
protected override void Dispose ( bool disposing )
1213
1213
{
1214
- base . Dispose ( disposing ) ;
1215
-
1216
1214
if ( disposing )
1217
1215
{
1216
+ ( TraceWriter as IDisposable ) ? . Dispose ( ) ;
1217
+ #if FEATURE_NODE
1218
+ NodeFunctionInvoker . UnhandledException -= OnUnhandledException ;
1219
+ #endif
1218
1220
_scriptFileWatcher ? . Dispose ( ) ;
1219
1221
_debugModeFileWatcher ? . Dispose ( ) ;
1222
+ _blobLeaseManager ? . Dispose ( ) ;
1220
1223
1221
1224
foreach ( var function in Functions )
1222
1225
{
1223
1226
( function . Invoker as IDisposable ) ? . Dispose ( ) ;
1224
1227
}
1225
-
1226
- _blobLeaseManager ? . Dispose ( ) ;
1227
- ( TraceWriter as IDisposable ) ? . Dispose ( ) ;
1228
-
1229
- #if FEATURE_NODE
1230
- NodeFunctionInvoker . UnhandledException -= OnUnhandledException ;
1231
- #endif
1232
1228
}
1229
+
1230
+ // dispose base last to ensure that errors there don't
1231
+ // cause us to not dispose ourselves
1232
+ base . Dispose ( disposing ) ;
1233
1233
}
1234
1234
}
1235
1235
}
You can’t perform that action at this time.
0 commit comments