[PR #777] [MERGED] Fix/connection listener #12979

Closed
opened 2026-08-05 02:07:09 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/777
Author: @pappz
Created: 4/1/2023
Status: Merged
Merged: 4/3/2023
Merged by: @pappz

Base: mainHead: fix/connection_listener


📝 Commits (2)

  • 2fb35c1 Refactor conn listener to single instance store
  • e3e576d Add test and fix

📊 Changes

4 files changed (+111 additions, -44 deletions)

View changed files

📝 client/android/client.go (+5 -5)
📝 client/internal/peer/notifier.go (+34 -33)
📝 client/internal/peer/notifier_test.go (+66 -0)
📝 client/internal/peer/status.go (+6 -6)

📄 Description

Describe your changes

Fix add/remove connection listener

In case we call the RemoveConnListener from Java then
we lose the reference from the original instance

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/777 **Author:** [@pappz](https://github.com/pappz) **Created:** 4/1/2023 **Status:** ✅ Merged **Merged:** 4/3/2023 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `main` ← **Head:** `fix/connection_listener` --- ### 📝 Commits (2) - [`2fb35c1`](https://github.com/netbirdio/netbird/commit/2fb35c1f1ce888c43771a03a4a4f461ab749e72e) Refactor conn listener to single instance store - [`e3e576d`](https://github.com/netbirdio/netbird/commit/e3e576d0f0129fab7f1aba76a5448ddf5743e085) Add test and fix ### 📊 Changes **4 files changed** (+111 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `client/android/client.go` (+5 -5) 📝 `client/internal/peer/notifier.go` (+34 -33) 📝 `client/internal/peer/notifier_test.go` (+66 -0) 📝 `client/internal/peer/status.go` (+6 -6) </details> ### 📄 Description ## Describe your changes Fix add/remove connection listener In case we call the RemoveConnListener from Java then we lose the reference from the original instance ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:07:09 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#12979