Commit c82cc61 1 parent 79db839 commit c82cc61 Copy full SHA for c82cc61
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -170,10 +170,10 @@ export default class PlayPeer {
170
170
incomingConnection . close ( ) ;
171
171
this . #hostConnections. delete ( incomingConnection ) ;
172
172
} catch ( error ) {
173
- console . error ( WARNING_PREFIX + "Error closing invalid connection:" , error ) ;
173
+ console . error ( ERROR_PREFIX + "Error closing invalid connection:" , error ) ;
174
174
}
175
175
}
176
- } , 10 * 1000 ) ;
176
+ } , 3 * 1000 ) ;
177
177
178
178
// Only process incoming connections if hosting
179
179
if ( this . #isHost) {
@@ -291,7 +291,7 @@ export default class PlayPeer {
291
291
console . error ( ERROR_PREFIX + "Connection attempt for joining room timed out." ) ;
292
292
this . #triggerEvent( "status" , "Connection attempt for joining room timed out." ) ;
293
293
reject ( new Error ( "Connection attempt for joining room timed out." ) ) ;
294
- } , 10 * 1000 ) ;
294
+ } , 3 * 1000 ) ;
295
295
296
296
this . #outgoingConnection. on ( "open" , ( ) => {
297
297
clearTimeout ( timeout ) ;
@@ -412,7 +412,7 @@ export default class PlayPeer {
412
412
try {
413
413
connection . send ( message ) ;
414
414
} catch ( error ) {
415
- console . error ( WARNING_PREFIX + `Failed to send broadcast message to peer ${ connection . peer } :` , error ) ;
415
+ console . error ( ERROR_PREFIX + `Failed to send broadcast message to peer ${ connection . peer } :` , error ) ;
416
416
this . #triggerEvent( "error" , `Failed to send broadcast message to peer ${ connection . peer } : ${ error } ` ) ;
417
417
}
418
418
}
You can’t perform that action at this time.
0 commit comments