From c9bbab05eed211c776b0f4142e314c9cf40b5c46 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 18 Feb 2011 00:24:28 +0000 Subject: [PATCH] Schedule a uTP write in peerIoWriteBuf. --- libtransmission/peer-io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtransmission/peer-io.c b/libtransmission/peer-io.c index 061696bae..fef573d06 100644 --- a/libtransmission/peer-io.c +++ b/libtransmission/peer-io.c @@ -990,6 +990,8 @@ tr_peerIoWriteBuf( tr_peerIo * io, struct evbuffer * buf, tr_bool isPieceData ) maybeEncryptBuffer( io, buf ); evbuffer_add_buffer( io->outbuf, buf ); addDatatype( io, byteCount, isPieceData ); + if( io->utp_socket ) + UTP_Write( io->utp_socket, byteCount ); } void