fix test_p2p on Windows

This commit is contained in:
Timothee 'TTimo' Besset
2024-09-29 15:55:53 -05:00
committed by Fletcher Dunn
parent 538ae81ec9
commit 405e2bfc75
+2 -2
View File
@@ -62,7 +62,7 @@ class RunProcessInThread(threading.Thread):
# Wait for thread to shutdown. Nuke process if we don't exit in time
def join( self, timeout ):
threading.Thread.join( self, timeout )
if self.isAlive():
if self.is_alive():
self.WriteLn( "Still running after %d seconds. Killing" % timeout )
global g_failed
g_failed = True
@@ -90,7 +90,7 @@ def StartClientInThread( role, local, remote ):
]
env = dict( os.environ )
if os.name == 'nt' and not os.path.exists( 'steamnetworkingsockets.dll' ):
if os.name == 'nt' and not os.path.exists( 'steamnetworkingsockets.dll' ) and not os.path.exists( 'GameNetworkingSockets.dll' ):
bindir = os.path.abspath('../../../bin')
if not os.path.exists( bindir ):
print( "Can't find steamnetworkingsockets.dll" )