Commit ea64b7f
authored
docs: state that no session disconnected event before closed (#48)
Though there is code path to deliver `Disconnected` before `Closed`, but
it is unreachable and several tests have assert immediate `Closed` after
clients dropped, e.g. `test_state_watcher`, `test_client_drop` and
`test_client_detach`.
I favor immediate `Closed` now since it states the truth and avoid false
reactions against `Disconnected`. Whoever want a `Disconnected` could do
it themselves.1 parent 96b611a commit ea64b7f
3 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
303 | 299 | | |
304 | 300 | | |
305 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1823 | 1823 | | |
1824 | 1824 | | |
1825 | 1825 | | |
1826 | | - | |
1827 | 1826 | | |
1828 | 1827 | | |
1829 | 1828 | | |
| |||
0 commit comments