8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Postfix for CORE-5772

This commit is contained in:
AlexPeshkoff 2018-03-15 15:59:52 +03:00
parent 44c6463d07
commit 42dd67631d

View File

@ -1291,15 +1291,10 @@ private:
{
if (waitFlag)
{
//printf("waitForCompletion %p\n", waitHandle);
Thread::waitForCompletion(waitHandle);
fb_assert(asyncPort);
if (asyncPort)
{
// printf(" release asyncPort %p\n", asyncPort);
asyncPort->release();
}
//printf(" done\n");
}
else if (asyncPort)
asyncPort->port_thread_guard = nullptr;
@ -1327,26 +1322,6 @@ public:
wThr.asyncPort->port_thread_guard = nullptr;
}
/* ~RemotePortGuard()
{
if (waitFlag)
{
printf("waitForCompletion %p\n", waitHandle);
Thread::waitForCompletion(waitHandle);
}
if (asyncPort)
{
if (asyncPort->port_thread_guard)
asyncPort->port_thread_guard = nullptr;
else
{
asyncPort->release();
printf("release asyncPort %p\n", asyncPort);
}
}
}
*/
private:
WaitThread wThr;
Firebird::RefMutexGuard guard;