mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:08:51 +02:00
disconnect
This commit is contained in:
parent
35831856ea
commit
cf6d78b26e
1 changed files with 4 additions and 3 deletions
|
@ -15,8 +15,9 @@
|
||||||
function startUpdate() {
|
function startUpdate() {
|
||||||
print('START UPDATE!!')
|
print('START UPDATE!!')
|
||||||
iOwn = true;
|
iOwn = true;
|
||||||
Script.update.connect(_this.update);
|
|
||||||
connected = true;
|
connected = true;
|
||||||
|
Script.update.connect(_this.update);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopUpdateAndReclaim() {
|
function stopUpdateAndReclaim() {
|
||||||
|
@ -89,9 +90,9 @@
|
||||||
if (baton) {
|
if (baton) {
|
||||||
baton.release(function() {});
|
baton.release(function() {});
|
||||||
}
|
}
|
||||||
if (connected === true) {
|
|
||||||
Script.update.disconnect(_this.update);
|
Script.update.disconnect(_this.update);
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue