mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
only wait for state change for migration once
This commit is contained in:
parent
430d1351db
commit
6ec55dc746
1 changed files with 1 additions and 1 deletions
|
@ -338,7 +338,7 @@ function promptToMigrateContent() {
|
||||||
}, function(index) {
|
}, function(index) {
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
if (homeServer.state != ProcessGroupStates.STOPPED) {
|
if (homeServer.state != ProcessGroupStates.STOPPED) {
|
||||||
homeServer.on('state-update', function(processGroup) {
|
homeServer.once('state-update', function(processGroup) {
|
||||||
if (processGroup.state == ProcessGroupStates.STOPPED) {
|
if (processGroup.state == ProcessGroupStates.STOPPED) {
|
||||||
performContentMigration();
|
performContentMigration();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue