aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-07-18 09:32:19 -0700
committerMike Buland <eichlan@xagasoft.com>2023-07-18 09:32:19 -0700
commit0ac3b14362273c23836f54b9ee0995420eeac349 (patch)
tree26aa1990abed1fcdbb87316dd4bc21ed5c88ec28 /src
parent18cd5f331b8d043a7f9c4d161f2319dc456dfcc9 (diff)
downloadlibbu++-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.cpp2
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
246void Bu::Client::disconnect() 246void 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