| 2646 | |
| 2647 | |
| 2648 | void cClientHandle::GetOutgoingData(AString & a_Data) |
| 2649 | { |
| 2650 | // Data can be sent to client |
| 2651 | { |
| 2652 | cCSLock Lock(m_CSOutgoingData); |
| 2653 | m_OutgoingData.ReadAll(a_Data); |
| 2654 | m_OutgoingData.CommitRead(); |
| 2655 | a_Data.append(m_OutgoingDataOverflow); |
| 2656 | m_OutgoingDataOverflow.clear(); |
| 2657 | } |
| 2658 | |
| 2659 | // Disconnect player after all packets have been sent |
| 2660 | if (m_HasSentDC && a_Data.empty()) |
| 2661 | { |
| 2662 | Destroy(); |
| 2663 | } |
| 2664 | } |
| 2665 | |
| 2666 | |
| 2667 |
nothing calls this directly
no test coverage detected