only wait for state change for migration once

This commit is contained in:
Stephen Birarda 2016-01-20 15:06:46 -08:00
parent 430d1351db
commit 6ec55dc746

View file

@ -338,7 +338,7 @@ function promptToMigrateContent() {
}, function(index) {
if (index == 0) {
if (homeServer.state != ProcessGroupStates.STOPPED) {
homeServer.on('state-update', function(processGroup) {
homeServer.once('state-update', function(processGroup) {
if (processGroup.state == ProcessGroupStates.STOPPED) {
performContentMigration();
}