From 4879c251689edf7024e617636e4f866694d4a134 Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Tue, 17 Aug 2021 09:38:07 -0700
Subject: [PATCH] fixed a crash when the app goes to the background

---
 network/ephemeral/tracker.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/network/ephemeral/tracker.go b/network/ephemeral/tracker.go
index 548012549..6d390016a 100644
--- a/network/ephemeral/tracker.go
+++ b/network/ephemeral/tracker.go
@@ -59,6 +59,7 @@ func track(session *storage.Session, addrSpace *AddressSpace, ourId *id.ID, stop
 
 	// Wait until we get the ID size from the network
 	receptionStore := session.Reception()
+	addrSpace.UnregisterNotification(addressSpaceSizeChanTag)
 	addressSizeUpdate, err := addrSpace.RegisterNotification(addressSpaceSizeChanTag)
 	if err != nil {
 		jww.FATAL.Panicf("failed to register address size notification "+
-- 
GitLab