fix: log the correct errno on libevent socket error

This commit is contained in:
Charles Kerr 2021-11-18 16:07:00 -06:00
parent b3e4fc64c5
commit 0b58e7afa7
1 changed files with 1 additions and 1 deletions

View File

@ -1156,7 +1156,7 @@ static void gotError(tr_peerIo* io, short what, void* vhandshake)
}
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);
}
}