|
Re: On the logic of the file checking: msg#00041network.bit-torrent.libtorrent
On Apr 24, 2006, at 14:47, Arvid Norberg wrote: On Apr 24, 2006, at 10:39, Echaozh Zhang wrote: The fix is quite simple. just move the assert and the allocate_slot(1); right below the termination condition. Like this: if (m_compact_mode) { m_state = state_finished; return std::make_pair(true, 1.f); } if (m_unallocated_slots.empty()) { m_state = state_finished; return std::make_pair(true, 1.f); } // if we're not in compact mode, make sure the // pieces are spread out and placed at their // final position. assert(!m_unallocated_slots.empty()); allocate_slots(1); I will check this into the development branch on the cvs, so it will be in the next release. -- Arvid Norberg ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Disk cache: 00041, Radu Hociung |
|---|---|
| Next by Date: | Re: Errors when compiling libtorrent-0.9.2-060421.tar.gz: 00041, Arvid Norberg |
| Previous by Thread: | Re: On the logic of the file checkingi: 00041, Arvid Norberg |
| Next by Thread: | Re: Libtorrent-discuss digest, Vol 1 #329 - 7 msgs: 00041, Echaozh Zhang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |