diff --git a/notifications.go b/notifications.go index 4ad7b376..51ac0c8a 100644 --- a/notifications.go +++ b/notifications.go @@ -71,9 +71,7 @@ func (b *BlockChain) sendNotification(typ NotificationType, data interface{}) { return } - // Generate and send the notification asynchronously. - go func() { - n := Notification{Type: typ, Data: data} - b.notifications <- &n - }() + // Generate and send the notification. + n := Notification{Type: typ, Data: data} + b.notifications <- &n }