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