mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-01 06:54:47 +03:00
d4ce11954d
With restart-on-client-disable on, a client the API removes from a running inbound must be followed by a core restart: the removal drops the credential only. The apply layer asked for that restart by setting the generic need-restart flag, and the tick then restarted only when the generated config differed from the running-config snapshot. A client added over the API is not in that snapshot, so disabling or deleting it before any reconcile diffed as "no change" and its live session kept passing traffic. The removal now queues the session-drop restart itself, through the request the depletion path already uses, so the tick replaces the core whatever the snapshot holds. Detaching a client and bulk delete removed clients the same way without asking for anything; they queue it too. WireGuard is left out: its session ends with the peer. The pending flag and the protocol predicate lose "depletion" from their names now that manual removals share them. Run on a panel with the real core: a client added after the core started, holding a stream open, was cut and the core replaced within one tick of its disable; before the change the stream ran on and the core kept its PID.