Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

issues/3332 use-after-free #3651

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libp2p/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,8 @@ void Host::run(boost::system::error_code const&)
// and also stops blocking worker thread, allowing worker thread to exit
m_ioService.stop();

// resetting timer signals network that nothing else can be scheduled to run
m_timer.reset();
// cancel any pending timer
m_timer->cancel();
return;
}

Expand Down