title: When using a cloud firestore listener, the unity editor gets stuck on "Application.Reload" after stopping and restarting the player
body: <p>I'm using Cloud Firestore in my unity app, and I've attached a listener as follows:</p>
  <pre><code>public void ListenForFirestoreChange()
  {
      DocumentReference docRef = db.Collection(&quot;users&quot;).Document(user.UserId);
      docRef.Listen(snapshot =&gt; {
              
          Dictionary&lt;string, object&gt; userEntry = snapshot.ToDictionary();
          Debug.Log(&quot;change detected: &quot; + snapshot.Id + &quot; &quot; + (string)userEntry[&quot;firestoreTime&quot;]);
      });
  }
  </code></pre>
  <p>This is working great, but when I stop the player and restart it, unity gets stuck loading with the message &quot;Application.Reload&quot;. I've tried stopping the listener onApplicationQuit, as well as setting my firestore reference to null, but that didn't work. I'm forced to end the Unity process, if I try to exit normally it gets stuck on Application.Quit. I've narrowed down the app getting stuck to this listener and I'm baffled.</p>
  <p>I'm using :
  Unity 2020.1.10f1</p>
  <p>Visual Studio 16.7.6</p>
  <p>Firebase for Unity 6.16.1</p>