| 1534 | packet = (toSent > maxGuaranteedPayload) ? maxGuaranteedPayload : toSent; |
| 1535 | toSent -= packet; |
| 1536 | msg = NetMessagePool::pool()->newMessage(packet, channel); |
| 1537 | if (!msg) |
| 1538 | { |
| 1539 | leaveSnd(); |
| 1540 | return false; |
| 1541 | } |
| 1542 | msg->setFlags(MSG_ALL_FLAGS, fl | (toSent ? 0 : MSG_CLOSING_FLAG)); |
no test coverage detected