Skip to content

Commit

Permalink
wip try fix awsConnectionManager race condition bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Will-ShaoHua committed May 6, 2024
1 parent 33031c7 commit 0f12ba9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ abstract class AwsConnectionManager(private val project: Project) : SimpleModifi
.subscribe(
CredentialManager.CREDENTIALS_CHANGED,
object : ToolkitCredentialsChangeListener {
override fun providerAdded(identifier: CredentialIdentifier) {
changeCredentialProvider(identifier)
}

override fun providerRemoved(identifier: CredentialIdentifier) {
if (selectedCredentialIdentifier == identifier) {
changeConnectionSettings(null, selectedRegion)
Expand Down

0 comments on commit 0f12ba9

Please sign in to comment.