possible lt freeze fix
This commit is contained in:
parent
595c16d858
commit
8df0c184db
|
@ -1193,7 +1193,12 @@ namespace libtorrent
|
||||||
i.begin[c >> 3] |= 1 << (7 - (c & 7));
|
i.begin[c >> 3] |= 1 << (7 - (c & 7));
|
||||||
}
|
}
|
||||||
assert(i.end - i.begin == (num_pieces + 7) / 8);
|
assert(i.end - i.begin == (num_pieces + 7) / 8);
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
|
m_sent_bitfield = true;
|
||||||
|
#endif
|
||||||
|
setup_send();
|
||||||
|
|
||||||
if (num_lazy_pieces > 0)
|
if (num_lazy_pieces > 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < num_lazy_pieces; ++i)
|
for (int i = 0; i < num_lazy_pieces; ++i)
|
||||||
|
@ -1205,11 +1210,6 @@ namespace libtorrent
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
m_sent_bitfield = true;
|
|
||||||
#endif
|
|
||||||
setup_send();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_EXTENSIONS
|
#ifndef TORRENT_DISABLE_EXTENSIONS
|
||||||
|
@ -2258,3 +2258,4 @@ namespace libtorrent
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -93,7 +93,7 @@ if not OS == "win":
|
||||||
else:
|
else:
|
||||||
boosttype = 'mt'
|
boosttype = 'mt'
|
||||||
removals = ['-g', '-DNDEBUG', '-O2', '-Wstrict-prototypes']
|
removals = ['-g', '-DNDEBUG', '-O2', '-Wstrict-prototypes']
|
||||||
additions = ['-DNDEBUG', '-O2']
|
additions = ['-DNDEBUG', '-O2', '-DTORRENT_DHT_VERBOSE_LOGGING=', '-DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1', '-DSTDC_HEADERS=1','-DTORRENT_VERBOSE_LOGGING=']
|
||||||
|
|
||||||
if python_version == '2.5':
|
if python_version == '2.5':
|
||||||
cv_opt = sysconfig.get_config_vars()["CFLAGS"]
|
cv_opt = sysconfig.get_config_vars()["CFLAGS"]
|
||||||
|
@ -127,8 +127,8 @@ if boosttype == "nomt":
|
||||||
'boost_thread', 'z', 'pthread', 'ssl']
|
'boost_thread', 'z', 'pthread', 'ssl']
|
||||||
print 'Libraries nomt'
|
print 'Libraries nomt'
|
||||||
elif boosttype == "mt":
|
elif boosttype == "mt":
|
||||||
librariestype = ['boost_filesystem-mt', 'boost_date_time-mt',
|
librariestype = ['boost_filesystem', 'boost_date_time',
|
||||||
'boost_thread-mt', 'z', 'pthread', 'ssl']
|
'boost_thread', 'z', 'pthread', 'ssl']
|
||||||
print 'Libraries mt'
|
print 'Libraries mt'
|
||||||
|
|
||||||
deluge_core = Extension('deluge_core',
|
deluge_core = Extension('deluge_core',
|
||||||
|
|
Loading…
Reference in New Issue