Skip to content

Commit 41d9aa1

Browse files
committed
Disable discovery inline during destruction
Don't dispatch into the IoContext so we are sure that the discovery is actually being disabled in time.
1 parent 03376b7 commit 41d9aa1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/ableton/link/Controller.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ class Controller
176176
auto stopped = false;
177177

178178
mIo->async([this, &mutex, &condition, &stopped]() {
179-
enable(false);
179+
mEnabled = false;
180+
mDiscovery.enable(false);
180181
std::unique_lock<std::mutex> lock(mutex);
181182
stopped = true;
182183
condition.notify_one();

0 commit comments

Comments
 (0)