Skip to content

Commit 51a8fe5

Browse files
authored
fix: dynamic event source registration should not return named event source (#2219)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 988cf17 commit 51a8fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/EventSourceManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public EventSource dynamicallyRegisterEventSource(String name,
234234
synchronized (this) {
235235
var actual = eventSources.existing(name, eventSource);
236236
if (actual != null) {
237-
eventSource = actual;
237+
eventSource = actual.eventSource();
238238
} else {
239239
registerEventSource(name, eventSource);
240240
}

0 commit comments

Comments
 (0)