Skip to content

Commit

Permalink
Merge pull request #24850 from avpinchuk/progress-status
Browse files Browse the repository at this point in the history
Fixes command progress status
  • Loading branch information
hs536 committed Mar 12, 2024
2 parents 4d4cb75 + 8dded39 commit 3e5203c
Showing 1 changed file with 4 additions and 1 deletion.
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2024 Contributors to the Eclipse Foundation.
* Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -123,7 +124,9 @@ protected synchronized void fireEvent(ProgressStatusEvent event) {
public void setEventBroker(AdminCommandEventBroker eventBroker) {
this.eventBroker = eventBroker;
if (eventBroker != null) {
eventBroker.fireEvent(EVENT_PROGRESSSTATUS_STATE, this);
// Pass an empty progress status to prevent duplicate children creation
// on the client side. This status is only used to send a state event.
eventBroker.fireEvent(EVENT_PROGRESSSTATUS_STATE, new CommandProgressImpl(name, id));
}
}

Expand Down

0 comments on commit 3e5203c

Please sign in to comment.