Fix a resource group bug
'MySessionState' is destroyed before 'groupWaitCancel' is called when shutdown. Access the
member of 'MySessionState' in 'groupWaitCancel' may cause segment fault.
@@ -3650,6 +3650,9 @@ sessionSetSlot(ResGroupSlotData *slot)
static ResGroupSlotData *
sessionGetSlot(void)
{
+ if (MySessionState == NULL)
+ return NULL;
+ else
return (ResGroupSlotData *) MySessionState->resGroupSlot;
}
