You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is safe. Iiuc the printer = nil and WithOnClose() happen in different goroutines. So even if nil check passes it might be nil once it gets to printWarnings
I don't think this is safe. Iiuc the printer = nil and WithOnClose() happen in different goroutines. So even if nil check passes it might be nil once it gets to printWarnings
fixes #2598
A simple fix for a patch release but we should do a proper one as follow-up to avoid this situation with
printerin the first place.