mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-25 03:54:47 +03:00
04be3da8fc
Updating a client whose last inbound was detached rewrote the clients record but, in client_traffics, only re-asserted enable in the true direction. The auto-disable and renewal loops read expiry, quota and the reset schedule from that row, so they kept acting on the stale values and never disabled an expired client. The no-inbound branch now goes through UpdateClientStat, the helper every attached-inbound update already uses, so the whole enforcement row follows the edit and the usage counters are left alone. Fixes #7160