diff --git a/src/plugin/bridges/vst3-impls/plug-view-proxy.cpp b/src/plugin/bridges/vst3-impls/plug-view-proxy.cpp index 3bcd2632..4ef67361 100644 --- a/src/plugin/bridges/vst3-impls/plug-view-proxy.cpp +++ b/src/plugin/bridges/vst3-impls/plug-view-proxy.cpp @@ -61,7 +61,8 @@ void RunLoopTasks::schedule(fu2::unique_function task) { tasks.push_back(std::move(task)); uint8_t notify_value = 1; - write(socket_write_fd, ¬ify_value, sizeof(notify_value)); + assert(write(socket_write_fd, ¬ify_value, sizeof(notify_value)) == + sizeof(notify_value)); } void PLUGIN_API @@ -77,7 +78,8 @@ RunLoopTasks::onFDIsSet(Steinberg::Linux::FileDescriptor /*fd*/) { // REAPER doesn't care. And funnily enough we only have to do all of // this because of REAPER. uint8_t notify_value; - read(socket_read_fd, ¬ify_value, sizeof(notify_value)); + assert(read(socket_read_fd, ¬ify_value, sizeof(notify_value)) == + sizeof(notify_value)); } tasks.clear();