mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 07:22:43 +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) {
|
||||
this.name = MyAvatar.sessionUUID + "-" + Math.floor(Math.random() * 10000000);
|
||||
this.name = Math.floor(Math.random() * 10000000);
|
||||
this.parentEntityID = parentEntityID;
|
||||
|
||||
// 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);
|
||||
if (ownerID !== null) {
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue