mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Don't ignore read/write results
For some reason this only issues warnings on the CI.
This commit is contained in:
@@ -61,7 +61,8 @@ void RunLoopTasks::schedule(fu2::unique_function<void()> 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();
|
||||
|
||||
Reference in New Issue
Block a user