| 821 | } |
| 822 | |
| 823 | void Initializer::stopRemoteServer() |
| 824 | { |
| 825 | DISTRHO_SAFE_ASSERT(remotePluginInstance == nullptr); |
| 826 | |
| 827 | #ifdef CARDINAL_INIT_OSC_THREAD |
| 828 | if (oscServerThread != nullptr) |
| 829 | { |
| 830 | lo_server_thread_stop(oscServerThread); |
| 831 | lo_server_thread_del_method(oscServerThread, nullptr, nullptr); |
| 832 | lo_server_thread_free(oscServerThread); |
| 833 | oscServerThread = nullptr; |
| 834 | oscServer = nullptr; |
| 835 | } |
| 836 | #else |
| 837 | if (oscServer != nullptr) |
| 838 | { |
| 839 | lo_server_del_method(oscServer, nullptr, nullptr); |
| 840 | lo_server_free(oscServer); |
| 841 | oscServer = nullptr; |
| 842 | } |
| 843 | #endif |
| 844 | } |
| 845 | |
| 846 | void Initializer::stepRemoteServer() |
| 847 | { |