Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit ff13d48

Browse files
authoredJul 28, 2020
Merge pull request #1950 from joequant/dev/segfault-stratum
fix seg fault
2 parents 6a5967d + 9c7856d commit ff13d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎libpoolprotocols/stratum/EthStratumClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ void EthStratumClient::workloop_timer_elapsed(const boost::system::error_code& e
367367
using namespace std::chrono;
368368

369369
// On timer cancelled or nothing to check for then early exit
370-
if (ec == boost::asio::error::operation_aborted)
370+
if ((ec == boost::asio::error::operation_aborted) || !m_conn)
371371
{
372372
return;
373373
}

0 commit comments

Comments
 (0)
This repository has been archived.