From 0ac3b14362273c23836f54b9ee0995420eeac349 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 18 Jul 2023 09:32:19 -0700 Subject: Had a read lock where a write lock was better. --- src/stable/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stable') 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 void Bu::Client::disconnect() { - Bu::ReadWriteMutex::ReadLocker lGlobal( mGlobal ); + Bu::ReadWriteMutex::WriteLocker lGlobal( mGlobal ); bWantsDisconnect = true; } -- cgit v1.2.3