Skip to content

Commit 4c0aca6

Browse files
committed
initialize ProcessNotificationsBase listener before Polling service
1 parent b2e012a commit 4c0aca6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/notifications/NotificationServiceInitializer.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ internal class NotificationServiceInitializer : ProjectActivity {
1313
private val initialized = AtomicBoolean(false)
1414

1515
override suspend fun execute(project: Project) {
16+
ProcessNotificationsBase.getInstance(project)
1617
if (ApplicationManager.getApplication().isUnitTestMode) return
1718
if (initialized.compareAndSet(false, true)) {
1819
val service = NotificationPollingService.getInstance()

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/notifications/ProcessNotificationsBase.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class ProcessNotificationsBase(
3131
) {
3232
private val notifListener = mutableListOf<NotifListener>()
3333
init {
34+
LOG.info { "Initializing ProcessNotificationsBase" }
3435
NotificationPollingService.getInstance().addObserver {
3536
retrieveStartupAndEmergencyNotifications()
3637
}

0 commit comments

Comments
 (0)