Changeset b3c1eac5dc2a392000b1f7df2522c244a62ab513
- Timestamp:
- 07/10/10 08:23:34 (2 months ago)
- Author:
- John M. Schanck <john@…>
- git-author:
- John M. Schanck <john@anomos.info> / 2010-07-10T04:22:38Z-0400
- Parents:
- a4e3d0a7d123fe7af9342b8f101f5d583fbc4125
- Children:
- 19b6b7d11f5b534eb475347068255f59f0d83884
- git-committer:
- John M. Schanck <john@anomos.info> / 2010-07-10T04:23:34Z-0400
- Message:
-
handle_close -> close for P2PConnection
- Location:
- Anomos
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1893030
|
rb3c1eac
|
|
| 70 | 70 | self.manager.connection_completed(self.socket, self.id) |
| 71 | 71 | if self.id == NAT_CHECK_ID: |
| 72 | | self.socket.handle_close() |
| | 72 | self.socket.close() |
| 73 | 73 | self.socket = None |
| 74 | 74 | def protocol_extensions(self): |
-
|
r7d5c69a
|
rb3c1eac
|
|
| 255 | 255 | # Close all streams when the last torrent is removed |
| 256 | 256 | for n in self.neighbors.values(): |
| 257 | | n.socket.handle_close() |
| | 257 | n.socket.close() |
| 258 | 258 | |
| 259 | 259 | def get_torrent(self, infohash): |
-
|
r25917b7
|
rb3c1eac
|
|
| 139 | 139 | self.collector.socket_flushed() |
| 140 | 140 | |
| 141 | | def handle_close(self): |
| 142 | | self.close() |
| 143 | | |
| 144 | 141 | def close(self): |
| 145 | 142 | if self.collector: |