mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Use non-recursive mutex
The related classes doesn't really need recursive mutex so drop it. And if it is really required it usually indicates bad design and we should avoid it anyway.
This commit is contained in:
@@ -155,7 +155,6 @@ SettingsStorage *SettingsStorage::m_instance = nullptr;
|
||||
SettingsStorage::SettingsStorage()
|
||||
: m_data{TransactionalSettings(QLatin1String("qBittorrent")).read()}
|
||||
, m_dirty(false)
|
||||
, m_lock(QReadWriteLock::Recursive)
|
||||
{
|
||||
m_timer.setSingleShot(true);
|
||||
m_timer.setInterval(5 * 1000);
|
||||
|
||||
Reference in New Issue
Block a user