Commit 6a7c4da
committed
refactor(connection): remove stale client recovery fallback
The SOCKET_DIED fallback in the stale disconnect handler is unreachable:
in every code path that reassigns this.xmpp, the state machine has
already transitioned out of `connected` (via a synchronous SOCKET_DIED)
before any stale disconnect can fire. The connect() guard from the
previous commit eliminates the only remaining scenario.1 parent f98b6d0 commit 6a7c4da
2 files changed
Lines changed: 8 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2783 | 2783 | | |
2784 | 2784 | | |
2785 | 2785 | | |
2786 | | - | |
| 2786 | + | |
2787 | 2787 | | |
2788 | 2788 | | |
2789 | 2789 | | |
2790 | 2790 | | |
| 2791 | + | |
| 2792 | + | |
2791 | 2793 | | |
2792 | 2794 | | |
2793 | 2795 | | |
2794 | 2796 | | |
2795 | 2797 | | |
2796 | | - | |
2797 | | - | |
2798 | | - | |
2799 | | - | |
2800 | | - | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
2801 | 2803 | | |
2802 | 2804 | | |
2803 | 2805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1676 | 1676 | | |
1677 | 1677 | | |
1678 | 1678 | | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
1692 | | - | |
1693 | 1679 | | |
1694 | 1680 | | |
1695 | 1681 | | |
| |||
0 commit comments