Make the persistent buffer thread local

Now that we allow ad hoc socket spawning for the audio sockets.
This commit is contained in:
Robbert van der Helm
2020-12-29 00:39:23 +01:00
parent 33806139e9
commit 0a05558a8c
2 changed files with 20 additions and 26 deletions
+6 -8
View File
@@ -491,14 +491,12 @@ class AdHocSocketHandler {
if (acceptor) {
acceptor->accept(socket);
if constexpr (ad_hoc_sockets) {
// As mentioned in `acceptor's` docstring, this acceptor will be
// recreated in `receive_multi()` on another context, and
// potentially on the other side of the connection in the case
// where we're handling `vst_host_callback` VST2 events
acceptor.reset();
boost::filesystem::remove(endpoint.path());
}
// As mentioned in `acceptor's` docstring, this acceptor will be
// recreated in `receive_multi()` on another context, and
// potentially on the other side of the connection in the case
// where we're handling `vst_host_callback` VST2 events
acceptor.reset();
boost::filesystem::remove(endpoint.path());
} else {
socket.connect(endpoint);
}