From e0b03952c19d669b4f901ba92305752930d43e72 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Wed, 11 Mar 2015 09:22:32 +0100 Subject: [PATCH] fixed "recommend releasing mutex as quickly as possible" --- libethereum/Client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libethereum/Client.cpp b/libethereum/Client.cpp index c8510e00c..ac7126670 100644 --- a/libethereum/Client.cpp +++ b/libethereum/Client.cpp @@ -850,12 +850,14 @@ TransactionHashes Client::transactionHashes(h256 _blockHash) const LocalisedLogEntries Client::logs(unsigned _watchId) const { + LogFilter f; try { Guard l(m_filterLock); - return logs(m_filters.at(m_watches.at(_watchId).id).filter); + f = m_filters.at(m_watches.at(_watchId).id).filter; } catch (...) { return LocalisedLogEntries(); } + return logs(f); } LocalisedLogEntries Client::logs(LogFilter const& _f) const