MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / _delete_allocation

Function _delete_allocation

tests/stun_server.py:400–404  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

398# ---------------------------------------------------------------------------
399
400def _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
406def _cleanup_expired():
407 expired = [k for k, a in _allocations.items() if a.is_expired()]

Callers 3

_handle_allocate_requestFunction · 0.85
_handle_refresh_requestFunction · 0.85
_cleanup_expiredFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected