Use dummy callbacks in peerIoReconnect.

This commit is contained in:
Juliusz Chroboczek 2011-02-18 00:24:45 +00:00
parent 44e6e4a8f2
commit 5a2710c9da
1 changed files with 3 additions and 0 deletions

View File

@ -833,6 +833,9 @@ tr_peerIoReconnect( tr_peerIo * io )
io->socket = -1;
}
if( io->utp_socket != NULL ) {
UTP_SetCallbacks( io->utp_socket,
&dummy_utp_function_table,
NULL );
UTP_Close(io->utp_socket);
io->utp_socket = NULL;
}