| 164 | } |
| 165 | |
| 166 | void BanMan::GetBanned(banmap_t& banmap) |
| 167 | { |
| 168 | LOCK(m_cs_banned); |
| 169 | // Sweep the banlist so expired bans are not returned |
| 170 | SweepBanned(); |
| 171 | banmap = m_banned; //create a thread safe copy |
| 172 | } |
| 173 | |
| 174 | void BanMan::SweepBanned() |
| 175 | { |
no outgoing calls