Skip to content

Commit 08f45f5

Browse files
committed
Quicker termination for eth --test
Before this commit, `eth --test` took half seconds to terminate after a SIGINT. Since retesteth required this after every test, most of the testing time was spent during this half seconds. ping @winsvega
1 parent 740da50 commit 08f45f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libethereum/Client.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ void Client::doWork(bool _doWait)
695695
if (!m_syncBlockQueue && !m_syncTransactionQueue && (_doWait || isSealed))
696696
{
697697
std::unique_lock<std::mutex> l(x_signalled);
698-
m_signalled.wait_for(l, chrono::seconds(1));
698+
m_signalled.wait_for(l, chrono::milliseconds(30));
699699
}
700700
}
701701

0 commit comments

Comments
 (0)