延迟释放端口
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
m "platform/web/models"
|
||||
q "platform/web/queries"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"gorm.io/gen/field"
|
||||
)
|
||||
@@ -130,9 +131,14 @@ func (s *channelGostProvider) removeRemote(batchNo string, batch *usedChanBatch)
|
||||
return client.DeleteAdmission(admissionName)
|
||||
}))
|
||||
}
|
||||
if len(deleteErrs) != 0 {
|
||||
return u.CombineErrors(deleteErrs)
|
||||
}
|
||||
|
||||
time.Sleep(time.Millisecond * 200)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *channelGostProvider) selectProxy(count int) (*m.Proxy, error) {
|
||||
return selectProxyByType(m.ProxyTypeGost, count)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user