Skip to content

Commit

Permalink
fix: Show proper connection status on tasks if queue was loaded befor…
Browse files Browse the repository at this point in the history
…e server scan.
  • Loading branch information
FlorianBauer committed Jan 2, 2023
1 parent 22c31f2 commit e4aaef8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,18 @@ private void updateConnectionStateOfQueueEntries(final ServerContext serverCtx)
}
}

/**
* Listener function which gets invoked when a server gets added.
*
* @param serverCtx The added server context.
*/
@Override
public void onServerConnectionAdded(final ServerContext serverCtx) {
addUuidToSelectionSet(serverCtx.getServerUuid());
if (!isEmpty()) {
// Update the loaded task queue in case a preset server showed up.
updateConnectionStateOfQueueEntries(serverCtx);
}
}

/**
Expand Down

0 comments on commit e4aaef8

Please sign in to comment.