Skip to content

Commit 9eb51d2

Browse files
committed
stop listening on destroy
1 parent d3c4bb0 commit 9eb51d2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • Plugins/SequencePlugin/Source/SequencePlugin/Private/EcosystemWallet/Authentication

Plugins/SequencePlugin/Source/SequencePlugin/Private/EcosystemWallet/Authentication/LocalhostListener.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ class SEQUENCEPLUGIN_API ULocalhostListener : public UObject
1616
public:
1717
static void ClearInstance();
1818
static ULocalhostListener* GetInstance();
19+
20+
virtual void BeginDestroy() override
21+
{
22+
StopListening();
23+
Super::BeginDestroy();
24+
}
1925

2026
void WaitForResponse(TSuccessCallback<FString> OnSuccess, FFailureCallback OnFailure);
2127
void StopListening();

0 commit comments

Comments
 (0)