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
There are some cases where we want to publish messages before calling the Destroy function on the pubnub object, and other cases where there is nothing to publish and we call Destroy immediately.
This causes a panic on version github.com/pubnub/go/v7 v7.2.1, which is easily reproducible with a minimal setup
There are some cases where we want to publish messages before calling the
Destroy
function on the pubnub object, and other cases where there is nothing to publish and we callDestroy
immediately.This causes a panic on version
github.com/pubnub/go/v7 v7.2.1
, which is easily reproducible with a minimal setupCalling
GetClient()
on the pubnub object before callingDestroy
properly sets up the client/transport, which prevents the panic from ocurring.Unless this is documented somewhere that I missed, I believe that
pn.NewPubNub(config)
should properly setup the client.The text was updated successfully, but these errors were encountered: