fix restart inbounds after commit db changes

This commit is contained in:
Alireza Ahmadi
2025-01-22 22:13:54 +01:00
parent 24a3e7b0da
commit e380cb888f
2 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -307,7 +307,7 @@ func (s *ClientService) DepleteClients() error {
if err == nil {
tx.Commit()
if len(inboundIds) > 0 && corePtr.IsRunning() {
err1 := s.InboundService.RestartInbounds(tx, inboundIds)
err1 := s.InboundService.RestartInbounds(db, inboundIds)
if err1 != nil {
logger.Error("unable to restart inbounds: ", err1)
}