Fixed use after free on p2pool shutdown

This commit is contained in:
SChernykh
2021-08-27 10:13:33 +02:00
parent 715c0d4e14
commit 776b1f561c
3 changed files with 11 additions and 5 deletions

View File

@@ -131,6 +131,7 @@ static int do_droppeers(p2pool *m_pool, const char * /* args */)
static int do_exit(p2pool *m_pool, const char * /* args */)
{
bkg_jobs_tracker.wait();
m_pool->stop();
return 1;