mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-05 15:43:40 +00:00
force stop join if we go past time limit
This commit is contained in:
parent
166548c29d
commit
4f32abdf4a
1 changed files with 5 additions and 0 deletions
|
|
@ -271,6 +271,11 @@ class Net {
|
|||
var openFlags = 0;
|
||||
|
||||
var onDatachannelOpen = (idx:Int) -> {
|
||||
if (!Net.isMP) {
|
||||
// Close
|
||||
client.close();
|
||||
return;
|
||||
}
|
||||
openFlags |= idx;
|
||||
if (openFlags == 3) {
|
||||
if (MarbleGame.canvas.content is MultiplayerLoadingGui) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue