Skip to content

Commit fb1c760

Browse files
Refs #6516. Fix a regression caused by [21445] aka [2fdeb3f].
We were unlocking a mutex after it was deleted. The lock is for the writeStringList()/readStringList() and should have been released before the DownRef().
1 parent a98783e commit fb1c760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mythtv/programs/mythbackend/mainserver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6096,8 +6096,8 @@ void MainServer::reconnectTimeout(void)
60966096
!masterServerSock->readStringList(strlist) ||
60976097
strlist.empty() || strlist[0] == "ERROR")
60986098
{
6099+
masterServerSock->Unlock(); // DownRef will delete socket...
60996100
masterServerSock->DownRef();
6100-
masterServerSock->Unlock();
61016101
masterServerSock = NULL;
61026102
if (strlist.empty())
61036103
{

0 commit comments

Comments
 (0)