mirror of
https://github.com/transmission/transmission
synced 2025-02-07 06:54:40 +00:00
(libT) fix cut and paste bug. I think this is the crash everyone in #transmission is chiming in about.
This commit is contained in:
parent
a70c922ab8
commit
645610f995
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ canReadWrapper( struct tr_iobuf * iobuf,
|
|||
const size_t oldLen = EVBUFFER_LENGTH( tr_iobuf_input( iobuf ) );
|
||||
const int ret = io->canRead( iobuf, io->userData, &piece );
|
||||
|
||||
if( ret != err )
|
||||
if( ret != READ_ERR )
|
||||
{
|
||||
const size_t used = oldLen - EVBUFFER_LENGTH( tr_iobuf_input( iobuf ) );
|
||||
if( piece )
|
||||
|
|
Loading…
Reference in a new issue