Skip to content

Commit 2cebf25

Browse files
committed
Guard disk_timer_ to allow stop without start().
1 parent b804223 commit 2cebf25

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/chasers/chaser_storage.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@ void chaser_storage::stopping(const code& ec) NOEXCEPT
6363
void chaser_storage::do_stopping(const code&) NOEXCEPT
6464
{
6565
BC_ASSERT(stranded());
66-
disk_timer_->stop();
67-
disk_timer_.reset();
66+
if (disk_timer_)
67+
{
68+
disk_timer_->stop();
69+
disk_timer_.reset();
70+
}
6871
}
6972

7073
// event handlers

0 commit comments

Comments
 (0)