Do not re-evaluate ended connections
This commit is contained in:
@@ -111,12 +111,17 @@ func resetAllConnectionVerdicts() {
|
||||
func resetConnectionVerdict(ctx context.Context, conn *network.Connection) (verdictChanged bool) {
|
||||
tracer := log.Tracer(ctx)
|
||||
|
||||
// Remove any active prompt as we settings are being re-evaluated.
|
||||
// Remove any active prompt as the settings are being re-evaluated.
|
||||
conn.RemovePrompt()
|
||||
|
||||
conn.Lock()
|
||||
defer conn.Unlock()
|
||||
|
||||
// Do not re-evaluate connection that have already ended.
|
||||
if conn.Ended > 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
// Update feature flags.
|
||||
if err := conn.UpdateFeatures(); err != nil && !errors.Is(err, access.ErrNotLoggedIn) {
|
||||
tracer.Warningf("filter: failed to update connection feature flags: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user