[bugfix] ensure the 'Closing' flag doesn't get cached (#2443)

This commit is contained in:
kim 2023-12-11 12:05:54 +00:00 committed by GitHub
parent cd1611362f
commit 2191c7dee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -824,6 +824,11 @@ func (c *GTSCaches) initPoll() {
// See internal/db/bundb/poll.go.
p2.Status = nil
// Don't include ephemeral fields
// which are only expected to be
// set on ONE poll instance.
p2.Closing = false
return p2
}