diff options
author | Mike Buland <eichlan@xagasoft.com> | 2023-07-18 09:32:19 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2023-07-18 09:32:19 -0700 |
commit | 0ac3b14362273c23836f54b9ee0995420eeac349 (patch) | |
tree | 26aa1990abed1fcdbb87316dd4bc21ed5c88ec28 /src | |
parent | 18cd5f331b8d043a7f9c4d161f2319dc456dfcc9 (diff) | |
download | libbu++-0ac3b14362273c23836f54b9ee0995420eeac349.tar.gz libbu++-0ac3b14362273c23836f54b9ee0995420eeac349.tar.bz2 libbu++-0ac3b14362273c23836f54b9ee0995420eeac349.tar.xz libbu++-0ac3b14362273c23836f54b9ee0995420eeac349.zip |
Had a read lock where a write lock was better.
Diffstat (limited to '')
-rw-r--r-- | src/stable/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stable/client.cpp b/src/stable/client.cpp index d9143d4..f6feb7c 100644 --- a/src/stable/client.cpp +++ b/src/stable/client.cpp | |||
@@ -245,7 +245,7 @@ const Bu::TcpSocket *Bu::Client::getSocket() const | |||
245 | 245 | ||
246 | void Bu::Client::disconnect() | 246 | void Bu::Client::disconnect() |
247 | { | 247 | { |
248 | Bu::ReadWriteMutex::ReadLocker lGlobal( mGlobal ); | 248 | Bu::ReadWriteMutex::WriteLocker lGlobal( mGlobal ); |
249 | bWantsDisconnect = true; | 249 | bWantsDisconnect = true; |
250 | } | 250 | } |
251 | 251 | ||