Probably fixed a deadlock! http://www.mc-server.org/support/index.php?do=details&task_id=147
git-svn-id: http://mc-server.googlecode.com/svn/trunk@171 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
b8046a8e9d
commit
d8fa9c15d7
@ -1200,9 +1200,9 @@ void cChunk::RemoveReference()
|
|||||||
|
|
||||||
int cChunk::GetReferenceCount()
|
int cChunk::GetReferenceCount()
|
||||||
{
|
{
|
||||||
m_pState->ReferenceCriticalSection.Unlock();
|
|
||||||
int Refs = m_pState->NumRefs;
|
|
||||||
m_pState->ReferenceCriticalSection.Lock();
|
m_pState->ReferenceCriticalSection.Lock();
|
||||||
|
int Refs = m_pState->NumRefs;
|
||||||
|
m_pState->ReferenceCriticalSection.Unlock();
|
||||||
return Refs;
|
return Refs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user