| 116 | { |
| 117 | pool = nullptr; |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | static void setupPortBitMask(BitMask& mask, bool server) |
| 122 | { |
| 123 | mask.empty(); |
| 124 | if (!server && IsDedicatedServer()) |
| 125 | { |
| 126 | mask.on(0); |
| 127 | return; |
| 128 | } |
| 129 | |
| 130 | int port = GetNetworkPort() + (server ? 0 : 2); |
| 131 | int i; |
| 132 | if (server && ::Poseidon::GetPidFileName().GetLength()) |
| 133 | { |
| 134 | mask.on(port); |
| 135 | } |
| 136 | else |
| 137 | { |
no test coverage detected