Skip to content

Commit 476eb30

Browse files
authored
Merge pull request libbitcoin#976 from evoskuil/master
Guard disk_timer_ to allow stop without start().
2 parents c39e467 + 2cebf25 commit 476eb30

File tree

6 files changed

+5
-36
lines changed

6 files changed

+5
-36
lines changed

Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ test_libbitcoin_node_test_SOURCES = \
8989
test/error.cpp \
9090
test/full_node.cpp \
9191
test/main.cpp \
92-
test/node.cpp \
9392
test/settings.cpp \
9493
test/test.cpp \
9594
test/test.hpp \

builds/cmake/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ if (with-tests)
331331
"../../test/error.cpp"
332332
"../../test/full_node.cpp"
333333
"../../test/main.cpp"
334-
"../../test/node.cpp"
335334
"../../test/settings.cpp"
336335
"../../test/test.cpp"
337336
"../../test/test.hpp"

builds/msvc/vs2022/libbitcoin-node-test/libbitcoin-node-test.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
<ClCompile Include="..\..\..\..\test\error.cpp" />
134134
<ClCompile Include="..\..\..\..\test\full_node.cpp" />
135135
<ClCompile Include="..\..\..\..\test\main.cpp" />
136-
<ClCompile Include="..\..\..\..\test\node.cpp" />
137136
<ClCompile Include="..\..\..\..\test\protocols\protocol.cpp" />
138137
<ClCompile Include="..\..\..\..\test\sessions\session.cpp" />
139138
<ClCompile Include="..\..\..\..\test\settings.cpp" />

builds/msvc/vs2022/libbitcoin-node-test/libbitcoin-node-test.vcxproj.filters

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@
6666
<ClCompile Include="..\..\..\..\test\main.cpp">
6767
<Filter>src</Filter>
6868
</ClCompile>
69-
<ClCompile Include="..\..\..\..\test\node.cpp">
70-
<Filter>src</Filter>
71-
</ClCompile>
7269
<ClCompile Include="..\..\..\..\test\protocols\protocol.cpp">
7370
<Filter>src\protocols</Filter>
7471
</ClCompile>

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

test/node.cpp

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)