(key)
| 398 | # --------------------------------------------------------------------------- |
| 399 | |
| 400 | def _delete_allocation(key): |
| 401 | alloc = _allocations.pop(key, None) |
| 402 | if alloc: |
| 403 | _relay_sock_map.pop(alloc.relay_sock, None) |
| 404 | alloc.relay_sock.close() |
| 405 | |
| 406 | def _cleanup_expired(): |
| 407 | expired = [k for k, a in _allocations.items() if a.is_expired()] |
no outgoing calls
no test coverage detected