hint_out voiding on channel close
authorvictor <victor@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 12 Nov 2009 16:02:29 +0000 (16:02 +0000)
committervictor <victor@e16421f0-f15b-0410-abcd-98678b794739>
Thu, 12 Nov 2009 16:02:29 +0000 (16:02 +0000)
git-svn-id: https://ttuki.vtt.fi/svn/p2p-next/TUD/p2tp/trunk@544 e16421f0-f15b-0410-abcd-98678b794739

p2tp.cpp

index 9211b67..c0c7016 100644 (file)
--- a/p2tp.cpp
+++ b/p2tp.cpp
@@ -55,6 +55,8 @@ Channel::Channel      (FileTransfer* transfer, int socket, Address peer_addr) :
 
 Channel::~Channel () {
        channels[id] = NULL;
+    for(int i=0; i<hint_out_.size(); i++)
+        transfer().picker().Expired(hint_out_[i].bin);
     delete cc_;
 }