mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 20:03:06 +02:00
Add extra logging to ownershipToken
This commit is contained in:
parent
9207e882b1
commit
639911e11f
1 changed files with 1 additions and 2 deletions
|
@ -81,7 +81,6 @@ var TOKEN_STATE_OWNED = 2;
|
||||||
|
|
||||||
OwnershipToken = function(name, parentEntityID, options) {
|
OwnershipToken = function(name, parentEntityID, options) {
|
||||||
this.name = MyAvatar.sessionUUID + "-" + Math.floor(Math.random() * 10000000);
|
this.name = MyAvatar.sessionUUID + "-" + Math.floor(Math.random() * 10000000);
|
||||||
this.name = Math.floor(Math.random() * 10000000);
|
|
||||||
this.parentEntityID = parentEntityID;
|
this.parentEntityID = parentEntityID;
|
||||||
|
|
||||||
// How often to check whether the token is available if we don't currently own it
|
// How often to check whether the token is available if we don't currently own it
|
||||||
|
@ -160,7 +159,7 @@ OwnershipToken.prototype = {
|
||||||
var ownerID = getOwnershipTokenID(this.parentEntityID);
|
var ownerID = getOwnershipTokenID(this.parentEntityID);
|
||||||
if (ownerID !== null) {
|
if (ownerID !== null) {
|
||||||
// Already owned, return
|
// Already owned, return
|
||||||
debug(this.name, "Token already owned by another client, return");
|
debug(this.name, "Token already owned by another client, returning. Owner: " + owenerID + ", Us: " + this.name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue