mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Thread-safe access OSC server to prevent crashes (not fully tested) (closes #307).
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ void OscReceiver::addHandler(const char *path, const char *types,
|
||||
|
||||
void OscReceiver::listen() {
|
||||
if (server_is_ok_) {
|
||||
int lo_fd = lo_server_get_socket_fd(server_);
|
||||
int lo_fd = lo_server_get_socket_fd(lo_server_thread_get_server(server_));
|
||||
if (lo_fd == 0) {
|
||||
std::cout << "OSC port " << port_ << " is already in use." << std::endl;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user