File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Provider/src/FirebirdSql.Data.FirebirdClient/Common Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ static ShutdownHelper()
30
30
_pools = new ConcurrentBag < Action > ( ) ;
31
31
_fbClients = new ConcurrentBag < Action > ( ) ;
32
32
#if ! NETSTANDARD1_6
33
- AppDomain . CurrentDomain . DomainUnload += ( sender , e ) => HandleShutdown ( ) ;
34
- AppDomain . CurrentDomain . ProcessExit += ( sender , e ) => HandleShutdown ( ) ;
33
+ AppDomain . CurrentDomain . DomainUnload += ( sender , e ) => HandleDomainUnload ( ) ;
34
+ AppDomain . CurrentDomain . ProcessExit += ( sender , e ) => HandleProcessShutdown ( ) ;
35
35
#endif
36
36
}
37
37
@@ -45,10 +45,15 @@ internal static void RegisterFbClientShutdown(Action item)
45
45
_fbClients . Add ( item ) ;
46
46
}
47
47
48
- static void HandleShutdown ( )
48
+ static void HandleDomainUnload ( )
49
49
{
50
50
foreach ( var item in _pools )
51
51
item ( ) ;
52
+ }
53
+
54
+ static void HandleProcessShutdown ( )
55
+ {
56
+ HandleDomainUnload ( ) ;
52
57
foreach ( var item in _fbClients )
53
58
item ( ) ;
54
59
}
You can’t perform that action at this time.
0 commit comments