Skip to content

Commit 40f3bae

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(). Thanks go to Helen Buus for finding this.
1 parent c4ee599 commit 40f3bae

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
@@ -5881,8 +5881,8 @@ void MainServer::reconnectTimeout(void)
58815881
!masterServerSock->readStringList(strlist) ||
58825882
strlist.empty() || strlist[0] == "ERROR")
58835883
{
5884+
masterServerSock->Unlock(); // DownRef will delete socket...
58845885
masterServerSock->DownRef();
5885-
masterServerSock->Unlock();
58865886
masterServerSock = NULL;
58875887
if (strlist.empty())
58885888
{

0 commit comments

Comments
 (0)