Skip to content

Commit

Permalink
Refs #6516. Fix a regression caused by [21445] aka [2fdeb3f].
Browse files Browse the repository at this point in the history
We were unlocking a mutex after it was deleted. The lock is for the writeStringList()/readStringList() and should have been released before the DownRef().
  • Loading branch information
daniel-kristjansson committed Dec 6, 2011
1 parent a98783e commit fb1c760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/mainserver.cpp
Expand Up @@ -6096,8 +6096,8 @@ void MainServer::reconnectTimeout(void)
!masterServerSock->readStringList(strlist) ||
strlist.empty() || strlist[0] == "ERROR")
{
masterServerSock->Unlock(); // DownRef will delete socket...
masterServerSock->DownRef();
masterServerSock->Unlock();
masterServerSock = NULL;
if (strlist.empty())
{
Expand Down

0 comments on commit fb1c760

Please sign in to comment.