Skip to content

Commit

Permalink
fix: Subscriber not receiving events from Relayer after reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Oct 19, 2023
1 parent 2a12dd7 commit a3a7ce3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions WalletConnectSharp.Core/Controllers/Subscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ protected virtual void RegisterEventListeners()
CheckPending();
});

_relayer.Provider.On<object>(ProviderEvents.Connect, (sender, @event) =>
_relayer.On<object>(RelayerEvents.Connect, (sender, @event) =>
{
OnConnect();
});

_relayer.Provider.On<object>(ProviderEvents.Disconnect, (sender, @event) =>
_relayer.On<object>(RelayerEvents.Disconnect, (sender, @event) =>
{
OnDisconnect();
});
Expand Down Expand Up @@ -359,7 +359,6 @@ protected virtual void OnDisconnect()

protected virtual void OnDisable()
{
logger.Log("OnDisable invoked");
cached = Values;
_subscriptions.Clear();
_topicMap.Clear();
Expand Down

0 comments on commit a3a7ce3

Please sign in to comment.