various smaller fixes
This commit is contained in:
parent
26053e4b76
commit
00efc31bf6
|
@ -378,6 +378,7 @@ namespace libtorrent
|
|||
disk_io_job j;
|
||||
m_waiting_to_shutdown = true;
|
||||
j.action = disk_io_job::abort_thread;
|
||||
j.start_time = time_now_hires();
|
||||
m_jobs.insert(m_jobs.begin(), j);
|
||||
m_signal.signal(l);
|
||||
}
|
||||
|
|
|
@ -744,6 +744,7 @@ namespace libtorrent
|
|||
if (found)
|
||||
{
|
||||
i = *iter;
|
||||
TORRENT_ASSERT(i->connection != &c);
|
||||
|
||||
if (i->banned)
|
||||
{
|
||||
|
|
|
@ -383,7 +383,7 @@ TORRENT_EXPORT void find_control_url(int type, char const* string, parse_state&
|
|||
|
||||
address rand_v4()
|
||||
{
|
||||
return address_v4(rand() << 16 | rand());
|
||||
return address_v4((rand() << 16 | rand()) & 0xffffffff);
|
||||
}
|
||||
|
||||
int test_main()
|
||||
|
|
Loading…
Reference in New Issue