Ver Fonte

Fix: warning: mutex '_aqm_m' is not held on every path through here [-Wthread-safety-analysis] (#1964)

Brenton Bostick há 2 anos atrás
pai
commit
1b59712c48
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      node/Switch.cpp

+ 1 - 0
node/Switch.cpp

@@ -642,6 +642,7 @@ void Switch::aqm_enqueue(void *tPtr, const SharedPtr<Network> &network, Packet &
 		}
 		}
 	}
 	}
 	if (!selectedQueue) {
 	if (!selectedQueue) {
+		_aqm_m.unlock();
 		return;
 		return;
 	}
 	}