Fix return value

This commit is contained in:
Tatsuhiro Tsujikawa 2019-08-31 17:33:00 +09:00
parent 8b32ad735f
commit b912b626cd
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ int recv_stream_data(ngtcp2_conn *conn, int64_t stream_id, int fin,
// TODO Better to do this gracefully rather than
// NGTCP2_ERR_CALLBACK_FAILURE. Perhaps, call
// ngtcp2_conn_write_application_close() ?
return -1;
return NGTCP2_ERR_CALLBACK_FAILURE;
}
return 0;
}