File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ import com.amplifyframework.statemachine.codegen.states.HostedUISignInState
8383import com.amplifyframework.statemachine.codegen.states.SignOutState
8484import java.util.concurrent.CountDownLatch
8585import java.util.concurrent.TimeUnit
86- import java.util.concurrent.atomic.AtomicReference
8786import kotlinx.coroutines.flow.collect
8887import kotlinx.coroutines.flow.takeWhile
8988
@@ -94,9 +93,6 @@ internal class RealAWSCognitoAuthPlugin(
9493 private val authStateMachine : AuthStateMachine ,
9594 private val logger : Logger
9695) {
97-
98- private val lastPublishedHubEventName = AtomicReference <String >()
99-
10096 init {
10197 addAuthStateChangeListener()
10298 configureAuthStates()
@@ -777,9 +773,6 @@ internal class RealAWSCognitoAuthPlugin(
777773 }
778774
779775 private fun sendHubEvent (eventName : String ) {
780- if (lastPublishedHubEventName.get() != eventName) {
781- lastPublishedHubEventName.set(eventName)
782- Amplify .Hub .publish(HubChannel .AUTH , HubEvent .create(eventName))
783- }
776+ Amplify .Hub .publish(HubChannel .AUTH , HubEvent .create(eventName))
784777 }
785778}
You can’t perform that action at this time.
0 commit comments