Sfoglia il codice sorgente

Fix teardown access violation in NetSoakTestSystemComponent

Signed-off-by: puvvadar <[email protected]>
puvvadar 3 anni fa
parent
commit
c70f3ce87a
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      Gem/Code/Source/NetSoakTestSystemComponent.cpp

+ 3 - 0
Gem/Code/Source/NetSoakTestSystemComponent.cpp

@@ -169,6 +169,9 @@ namespace NetSoakTest
     {
         AZ::TickBus::Handler::BusDisconnect();
         NetSoakTestRequestBus::Handler::BusDisconnect();
+
+        AZ::Interface<INetworking>::Get()->DestroyNetworkInterface(AZ::Name(s_loopbackInterfaceName));
+        AZ::Interface<INetworking>::Get()->DestroyNetworkInterface(AZ::Name(s_networkInterfaceName));
     }
 
     void NetSoakTestSystemComponent::OnTick(float deltaTime, [[maybe_unused]] AZ::ScriptTimePoint time)