File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
18
18
### Fixed
19
19
20
+ - [ connect] Only deletes the connect state on dealer shutdown instead on disconnecting
20
21
- [ core] Fixed a problem where in ` spclient ` where a http 411 error was thrown because the header were set wrong
21
22
22
23
### Security
Original file line number Diff line number Diff line change @@ -552,6 +552,11 @@ impl SpircTask {
552
552
}
553
553
}
554
554
555
+ // this should clear the active session id, leaving an empty state
556
+ if let Err ( why) = self . session . spclient ( ) . delete_connect_state_request ( ) . await {
557
+ error ! ( "error during connect state deletion: {why}" )
558
+ } ;
559
+
555
560
self . session . dealer ( ) . close ( ) . await ;
556
561
}
557
562
@@ -1163,12 +1168,6 @@ impl SpircTask {
1163
1168
1164
1169
self . connect_state . became_inactive ( & self . session ) . await ?;
1165
1170
1166
- // this should clear the active session id, leaving an empty state
1167
- self . session
1168
- . spclient ( )
1169
- . delete_connect_state_request ( )
1170
- . await ?;
1171
-
1172
1171
self . player
1173
1172
. emit_session_disconnected_event ( self . session . connection_id ( ) , self . session . username ( ) ) ;
1174
1173
You can’t perform that action at this time.
0 commit comments