fix: log the correct errno on libevent socket error
This commit is contained in:
parent
b3e4fc64c5
commit
0b58e7afa7
|
@ -1156,7 +1156,7 @@ static void gotError(tr_peerIo* io, short what, void* vhandshake)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dbgmsg(handshake, "libevent got an error what==%d, errno=%d (%s)", (int)what, errno, tr_strerror(errno));
|
dbgmsg(handshake, "libevent got an error what==%d, errno=%d (%s)", (int)what, errcode, tr_strerror(errcode));
|
||||||
tr_handshakeDone(handshake, false);
|
tr_handshakeDone(handshake, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue