We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7109a97 commit e8b5467Copy full SHA for e8b5467
addons/ofxOsc/src/ofxOscReceiver.cpp
@@ -96,19 +96,11 @@ bool ofxOscReceiver::start() {
96
}
97
});
98
99
- // detach thread so we don't have to wait on it before creating a new socket
100
- // or on destruction, the custom deleter for the socket unique_ptr already
101
- // does the right thing
102
-
103
-#ifndef OSC_NO_DETACH
104
- listenThread.detach();
105
-#endif
106
return true;
107
108
109
//--------------------------------------------------------------
110
void ofxOscReceiver::stop() {
111
-#ifdef OSC_NO_DETACH
112
if (listenSocket) {
113
listenSocket->AsynchronousBreak();
114
} else {
@@ -120,7 +112,6 @@ void ofxOscReceiver::stop() {
120
121
listenThread.join();
122
123
124
115
listenSocket.reset();
125
116
126
117
0 commit comments