@@ -5,7 +5,7 @@ use crate::formatting;
55use crate :: injector:: InputInjector ;
66use crate :: session:: SessionManager ;
77use crate :: socket:: SocketServer ;
8- use crate :: types:: { BridgeMessage , InlineButton , MessageType , SendOptions } ;
8+ use crate :: types:: { BridgeMessage , InlineButton , MessageType , SendOptions , SessionStatus } ;
99use std:: collections:: { HashMap , HashSet } ;
1010use std:: sync:: Arc ;
1111use tokio:: sync:: { broadcast, Mutex , RwLock } ;
@@ -387,7 +387,7 @@ impl BridgeShared {
387387 . remove ( & msg. session_id ) ;
388388
389389 let sessions = self . sessions . lock ( ) . await ;
390- sessions. end_session ( & msg. session_id , "ended" ) ;
390+ sessions. end_session ( & msg. session_id , SessionStatus :: Ended ) ;
391391 }
392392
393393 Ok ( ( ) )
@@ -865,7 +865,7 @@ impl BridgeShared {
865865 sessions. resolve_approval ( id, status) ;
866866
867867 if action == "abort" {
868- sessions. end_session ( & approval. session_id , "aborted" ) ;
868+ sessions. end_session ( & approval. session_id , SessionStatus :: Aborted ) ;
869869 }
870870 }
871871
@@ -1084,7 +1084,7 @@ impl BridgeShared {
10841084 self . session_tmux_targets . write ( ) . await . remove ( & session. id ) ;
10851085
10861086 let sessions = self . sessions . lock ( ) . await ;
1087- sessions. end_session ( & session. id , "ended" ) ;
1087+ sessions. end_session ( & session. id , SessionStatus :: Ended ) ;
10881088 }
10891089}
10901090
0 commit comments