Fix check on result of sexp_write()
This commit is contained in:
parent
a3ebf4df37
commit
dff260f74a
2
relay.c
2
relay.c
|
@ -40,7 +40,7 @@ static void send_sexp_syntax_error(IOHandle *h, char const *message) {
|
|||
INCREF(m);
|
||||
|
||||
iohandle_clear_error(h);
|
||||
ICHECK(sexp_write(h, m), "send_sexp_syntax_error sexp_write");
|
||||
BCHECK(!sexp_write(h, m), "send_sexp_syntax_error sexp_write");
|
||||
DECREF(m, sexp_destructor);
|
||||
iohandle_flush(h); /* ignore result here, there's not much we can do with it */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue