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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) {