mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-09-09 16:22:54 +02:00
delete pubsub subscription on shutdown
This commit is contained in:
parent
190d836b42
commit
f51bfdb666
1 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,11 @@ PubSubListener::~PubSubListener()
|
|||
if (_subscriberThread.joinable()) {
|
||||
_subscriberThread.join();
|
||||
}
|
||||
|
||||
auto status = _adminClient.DeleteSubscription(_subscription.FullName());
|
||||
if (! status.ok()) {
|
||||
fprintf(stderr, "Failed to delete subscription: %s\n", status.message().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void PubSubListener::subscribe()
|
||||
|
|
Loading…
Add table
Reference in a new issue