~ubuntu-branches/debian/lenny/libtorrent/lenny

« back to all changes in this revision

Viewing changes to src/download/connection_list.cc

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Rivas
  • Date: 2007-12-16 19:09:02 UTC
  • mto: (4.1.6 hardy)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20071216190902-5v3qtohdscx34trc
Tags: upstream-0.11.9
ImportĀ upstreamĀ versionĀ 0.11.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    throw internal_error("ConnectionList::insert(...) received a NULL pointer.");
67
67
 
68
68
  peerInfo->set_connection(peerConnection);
 
69
  peerInfo->set_last_connection(cachedTime.seconds());
69
70
  peerConnection->initialize(m_download, peerInfo, fd, bitfield, encryptionInfo, extensions);
70
71
 
71
72
  base_type::push_back(peerConnection);
95
96
  peerConnection->cleanup();
96
97
  peerConnection->peer_info()->set_connection(NULL);
97
98
 
98
 
  m_download->peer_list()->disconnected(peerConnection->peer_info(), 0);
 
99
  m_download->peer_list()->disconnected(peerConnection->peer_info(), PeerList::disconnect_set_time);
99
100
 
100
101
  // Delete after the signal to ensure the address of 'v' doesn't get
101
102
  // allocated for a different PCB in the signal.