mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
logic tweak
This commit is contained in:
parent
5b56956637
commit
a4125c1507
1 changed files with 5 additions and 2 deletions
|
@ -760,7 +760,10 @@
|
|||
break;
|
||||
case "done":
|
||||
delete waitingList[senderID];
|
||||
if (state === STATES.CONNECTING && connectingId === senderID) {
|
||||
if (connectionId !== senderID) {
|
||||
break;
|
||||
}
|
||||
if (state === STATES.CONNECTING) {
|
||||
// if they are done, and didn't connect us, terminate our
|
||||
// connecting
|
||||
if (message.connectionId !== MyAvatar.sessionUUID) {
|
||||
|
@ -776,7 +779,7 @@
|
|||
stopConnecting();
|
||||
}
|
||||
} else {
|
||||
if (state == STATES.MAKING_CONNECTION && connectingId === senderID) {
|
||||
if (state == STATES.MAKING_CONNECTION) {
|
||||
// we are making connection, they just started, so lets reset the
|
||||
// poll count just in case
|
||||
pollCount = 0;
|
||||
|
|
Loading…
Reference in a new issue