1
0
mirror of synced 2025-06-12 07:41:53 +03:00

Removed is_writable() from DataSink (Resolve #1478, too) (#1483)

This commit is contained in:
yhirose
2023-02-04 13:53:42 -05:00
committed by GitHub
parent 439caf5b79
commit d663588491
3 changed files with 24 additions and 31 deletions

View File

@ -19,7 +19,7 @@ public:
unique_lock<mutex> lk(m_);
int id = id_;
cv_.wait(lk, [&] { return cid_ == id; });
if (sink->is_writable()) { sink->write(message_.data(), message_.size()); }
sink->write(message_.data(), message_.size());
}
void send_event(const string &message) {