Commit 410be5b
committed
Fix race condition in session roaming
The transport could be removed from _server_instances by the cleanup
task if it crashed immediately after being started. This caused a
KeyError when trying to access it from the dictionary.
Fixed by keeping a local reference to the transport instead of looking
it up again from the dictionary after starting the server task.1 parent 22a82b7 commit 410be5b
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
245 | 249 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
| |||
0 commit comments