diff --git a/trunk/src/protocol/srs_protocol_rtmp_stack.cpp b/trunk/src/protocol/srs_protocol_rtmp_stack.cpp index 2e75b0d4ff..5a19e72c12 100644 --- a/trunk/src/protocol/srs_protocol_rtmp_stack.cpp +++ b/trunk/src/protocol/srs_protocol_rtmp_stack.cpp @@ -539,7 +539,7 @@ srs_error_t SrsProtocol::do_send_messages(SrsSharedPtrMessage** msgs, int nb_msg // consume sendout bytes. p += payload_size; - if ((er = skt->writev(iovs, 2, NULL)) != srs_success) { + if ((err = skt->writev(iovs, 2, NULL)) != srs_success) { return srs_error_wrap(err, "writev"); } }