TODO: not perfect but emulate old behavoiur
| 1724 | |
| 1725 | //TODO: not perfect but emulate old behavoiur |
| 1726 | void TUdpHost::Wait(float seconds) { |
| 1727 | if (SendResults.IsEmpty() && ReceivedClientQueue.IsEmpty()) { |
| 1728 | Event.Reset(); |
| 1729 | if (SendResults.IsEmpty() && ReceivedClientQueue.IsEmpty()) { |
| 1730 | Event.Wait(ui32(seconds * 1000.0)); |
| 1731 | } |
| 1732 | } |
| 1733 | } |
| 1734 | |
| 1735 | void TUdpHost::StepLow() { |
| 1736 | TXUserQueue.DequeueAndRun(); |