)                         {                             if (pSessionData->SendPayload(pPayload, kNoWait) == Result::Success)                             {                                 // Pop the message off the queue since it was successfully sent.                                 pSessionData->messages.PopFront();                                 