msgpack-rpc: Don't try to write into a closed channel

This commit is contained in:
Rui Abreu Ferreira
2014-11-05 19:45:16 +00:00
committed by Thiago de Arruda
parent da3f097807
commit 2729ad195b

View File

@@ -491,6 +491,10 @@ static bool channel_write(Channel *channel, WBuffer *buffer)
{ {
bool success; bool success;
if (channel->closed) {
return false;
}
if (channel->is_job) { if (channel->is_job) {
success = job_write(channel->data.job, buffer); success = job_write(channel->data.job, buffer);
} else { } else {