Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unchecked type assertion in Subscription Stats #693

Merged
merged 1 commit into from Oct 24, 2023

Conversation

Jarrah-libremfg
Copy link
Contributor

@Jarrah-libremfg Jarrah-libremfg commented Oct 19, 2023

Fixes the following panic:

github.com/gopcua/opcua.(*Subscription).StatsWithContext(0xc0000a48c0, {0xf66c28, 0x1545c20})
            github.com/gopcua/opcua@v0.3.11/subscription.go:315 +0x207
 github.com/gopcua/opcua.(*Subscription).Stats(...)
            github.com/gopcua/opcua@v0.3.11/subscription.go:296

subscription.go Outdated Show resolved Hide resolved
Fixes the following panic:
github.com/gopcua/opcua.(*Subscription).StatsWithContext(0xc0000a48c0, {0xf66c28, 0x1545c20})
            github.com/gopcua/opcua@v0.3.11/subscription.go:315 +0x207
 github.com/gopcua/opcua.(*Subscription).Stats(...)
            github.com/gopcua/opcua@v0.3.11/subscription.go:296
@magiconair magiconair merged commit 1782ad0 into gopcua:main Oct 24, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants