Skip to content

Commit

Permalink
Support registering SKIs before start
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Jul 17, 2023
1 parent 92fb74e commit 620365f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ func (h *connectionsHub) start() {
if err != nil {
logging.Log.Debug("error during mdns setup:", err)
}

h.checkRestartMdnsSearch()
}

var _ ship.ShipServiceDataProvider = (*connectionsHub)(nil)
Expand Down
4 changes: 4 additions & 0 deletions service/mdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ func (m *mdnsManager) UnregisterMdnsSearch(cb MdnsSearch) {

// search for mDNS entries and report them
func (m *mdnsManager) resolveEntries() {
if m.mdnsProvider == nil {
m.isSearchingServices = false
return
}
go func() {
m.mdnsProvider.ResolveEntries(m.cancelChan)

Expand Down

0 comments on commit 620365f

Please sign in to comment.