mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
fix test_p2p on Windows
This commit is contained in:
committed by
Fletcher Dunn
parent
538ae81ec9
commit
405e2bfc75
+2
-2
@@ -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" )
|
||||
|
||||
Reference in New Issue
Block a user