void Syscall::CancelBluetoothConnections() { HashMap<CConnection>::TIteratorC itr = gConnections.begin(); LOGBT("%i connections.\n", gConnections.size()); while(itr.hasMore()) { const HashMap<CConnection>::Pair& p = itr.next(); CConnection* conn = p.value; DEBUG_ASSERT(conn != NULL); if(conn->isBluetooth()) { LOGBT("Canceling ops on connection %i.\n", p.key); conn->errorOverride = CONNERR_UNAVAILABLE; conn->CancelAll(); } } }