Skip to content
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().
  • Loading branch information...
1 parent a98783e commit fb1c7607f4aa2b5343aad98a043d94db78bf6d15 @daniel-kristjansson daniel-kristjansson committed Dec 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/programs/mythbackend/mainserver.cpp
View
2 mythtv/programs/mythbackend/mainserver.cpp
@@ -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())
{

0 comments on commit fb1c760

Please sign in to comment.
Something went wrong with that request. Please try again.