File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -946,7 +946,7 @@ where
946
946
}
947
947
Command ( command) => self . handle_command ( command) . await ,
948
948
TriggerShutdown ( user_init_shutdown) => {
949
- self . trigger_shutdown ( user_init_shutdown) ;
949
+ self . on_trigger_shutdown ( user_init_shutdown) ;
950
950
should_stop = true ;
951
951
}
952
952
NewAppVersionInfo ( app_version_info) => {
@@ -2636,7 +2636,7 @@ where
2636
2636
}
2637
2637
}
2638
2638
2639
- fn trigger_shutdown ( & mut self , user_init_shutdown : bool ) {
2639
+ fn on_trigger_shutdown ( & mut self , user_init_shutdown : bool ) {
2640
2640
// Block all traffic before shutting down to ensure that no traffic can leak on boot or
2641
2641
// shutdown.
2642
2642
if !user_init_shutdown
@@ -2665,8 +2665,7 @@ where
2665
2665
self . target_state . lock ( ) ;
2666
2666
2667
2667
if shutdown {
2668
- self . state . shutdown ( & self . tunnel_state ) ;
2669
- self . disconnect_tunnel ( ) ;
2668
+ let _ = self . tx . send ( InternalDaemonEvent :: TriggerShutdown ( false ) ) ;
2670
2669
}
2671
2670
}
2672
2671
You can’t perform that action at this time.
0 commit comments