Skip to content

Commit e8b5467

Browse files
committed
ofxOscReceiver: cleanup #ifdef
1 parent 7109a97 commit e8b5467

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

addons/ofxOsc/src/ofxOscReceiver.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,11 @@ bool ofxOscReceiver::start() {
9696
}
9797
});
9898

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
10699
return true;
107100
}
108101

109102
//--------------------------------------------------------------
110103
void ofxOscReceiver::stop() {
111-
#ifdef OSC_NO_DETACH
112104
if (listenSocket) {
113105
listenSocket->AsynchronousBreak();
114106
} else {
@@ -120,7 +112,6 @@ void ofxOscReceiver::stop() {
120112
} else {
121113
listenThread.join();
122114
}
123-
#endif
124115
listenSocket.reset();
125116
}
126117

0 commit comments

Comments
 (0)