Skip to content

Commit 226b170

Browse files
author
Nathan Monfils
committed
Call on_data_sent with bytes_sent even if asock is shut down (pjsip#4878)
1 parent e608796 commit 226b170

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pjlib/src/pj/activesock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ static void ioqueue_on_write_complete(pj_ioqueue_key_t *key,
779779
*/
780780
if (asock->shutdown & SHUT_TX) {
781781
if (asock->cb.on_data_sent) {
782-
(*asock->cb.on_data_sent)(asock, op_key, -PJ_ESOCKETSTOP);
782+
(*asock->cb.on_data_sent)(asock, op_key, bytes_sent);
783783
}
784784
return;
785785
}

0 commit comments

Comments
 (0)