From 17c250349e55eef2dda5cefb0263ece28443dba0 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 1 Nov 2008 19:34:12 +0000 Subject: [PATCH] fix for when update_peer_port() disconnects --- src/bt_peer_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index 8b416b796..485072549 100644 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -1290,6 +1290,7 @@ namespace libtorrent { t->get_policy().update_peer_port(listen_port , peer_info_struct(), peer_info::incoming); + if (is_disconnecting()) return; } // there should be a version too // but where do we put that info?