title: MutableStateFlow is not emitting values after 1st emit kotlin coroutine
body: <p>This is my FirebaseOTPVerificationOperation class, where my MutableStateFlow properties are defined, and values are changed,</p>
  <pre><code>    @ExperimentalCoroutinesApi
  class FirebaseOTPVerificationOperation @Inject constructor(
      private val activity: Activity,
      val logger: Logger
  ) {
      private val _phoneAuthComplete = MutableStateFlow&lt;PhoneAuthCredential?&gt;(null)
      val phoneAuthComplete: StateFlow&lt;PhoneAuthCredential?&gt;
          get() = _phoneAuthComplete
  
      private val _phoneVerificationFailed = MutableStateFlow&lt;String&gt;(&quot;&quot;)
      val phoneVerificationFailed: StateFlow&lt;String&gt;
          get() = _phoneVerificationFailed
  
      private val _phoneCodeSent = MutableStateFlow&lt;Boolean?&gt;(null)
      val phoneCodeSent: StateFlow&lt;Boolean?&gt;
          get() = _phoneCodeSent
  
      private val _phoneVerificationSuccess = MutableStateFlow&lt;Boolean?&gt;(null)
      val phoneVerificationSuccess: StateFlow&lt;Boolean?&gt;
          get() = _phoneVerificationSuccess
  
      fun resendPhoneVerificationCode(phoneNumber: String) {
          _phoneVerificationFailed.value = &quot;ERROR_RESEND&quot;
      }
  }
  </code></pre>
  <p>This is my viewmodal, from where i am listening the changes in stateflow properties, as follows,</p>
  <pre><code>class OTPVerificationViewModal @AssistedInject constructor(
      private val coroutinesDispatcherProvider: AppCoroutineDispatchers,
      private val firebasePhoneVerificationListener: FirebaseOTPVerificationOperation,
      @Assisted private val savedStateHandle: SavedStateHandle
  ) : ViewModel() {
  
      @AssistedInject.Factory
      interface Factory {
          fun create(savedStateHandle: SavedStateHandle): OTPVerificationViewModal
      }
  
      val phoneAuthComplete = viewModelScope.launch {
          firebasePhoneVerificationListener.phoneAuthComplete.filter {
              Log.e(&quot;1&quot;,&quot;filter auth $it&quot;)
              it.isNotNull()
          }.collect {
              Log.e(&quot;2&quot;,&quot;complete auth $it&quot;)
          }
      }
  
      val phoneVerificationFailed = viewModelScope.launch {
          firebasePhoneVerificationListener.phoneVerificationFailed.filter {
              Log.e(&quot;3&quot;,&quot;filter failed $it&quot;)
              it.isNotEmpty()
          }.collect {
              Log.e(&quot;4&quot;,&quot;collect failed $it&quot;)
          }
      }
  
      val phoneCodeSent = viewModelScope.launch {
          firebasePhoneVerificationListener.phoneCodeSent.filter {
              Log.e(&quot;5&quot;,&quot;filter code $it&quot;)
              it.isNotNull()
          }.collect {
              Log.e(&quot;6&quot;,&quot;collect code $it&quot;)
          }
      }
  
      val phoneVerificationSuccess = viewModelScope.launch {
          firebasePhoneVerificationListener.phoneVerificationSuccess.filter {
              Log.e(&quot;7&quot;,&quot;filter success $it&quot;)
              it.isNotNull()
          }.collect {
              Log.e(&quot;8&quot;,&quot;collect success $it&quot;)
          }
      }
  
      init {
          resendVerificationCode()
          secondCall()
      }
  
      private fun secondCall() {
          viewModelScope.launch(coroutinesDispatcherProvider.io) {
              delay(10000)
              resendVerificationCode()
          }
      }
  
      fun resendVerificationCode() {
          viewModelScope.launch(coroutinesDispatcherProvider.io) {
              firebasePhoneVerificationListener.resendPhoneVerificationCode(
                  getNumber()
              )
          }
      }
  
      private fun getNumber() =
              &quot;+9191111116055&quot;
  }
  </code></pre>
  <p>The issue is that</p>
  <pre><code>firebasePhoneVerificationListener.phoneVerificationFailed 
  </code></pre>
  <p>is fired in viewmodal for first call of,</p>
  <pre><code>init {
     resendVerificationCode()
  }
  </code></pre>
  <p>but for second call of:</p>
  <pre><code>init {
     secondCall()
  }
  </code></pre>
  <p><code>firebasePhoneVerificationListener.phoneVerificationFailed</code> is not fired in viewmodal, I don't know why it happened, any reason or explanation will be very appericated.</p>
  <p>Current Output:</p>
  <pre><code>filter auth null
  filter failed 
  filter code null
  filter success null
  filter failed ERROR_RESEND
  collect failed ERROR_RESEND
  </code></pre>
  <p>Expected Output:</p>
  <pre><code>filter auth null
  filter failed 
  filter code null
  filter success null
  filter failed ERROR_RESEND
  collect failed ERROR_RESEND
  filter failed ERROR_RESEND
  collect failed ERROR_RESEND
  </code></pre>