Skip to content

Allow unregistering a service multiple times - #679

Merged
bdraco merged 1 commit into
python-zeroconf:masterfrom
bdraco:unregister_compete
Jun 16, 2021
Merged

Allow unregistering a service multiple times#679
bdraco merged 1 commit into
python-zeroconf:masterfrom
bdraco:unregister_compete

Conversation

@bdraco

@bdraco bdraco commented Jun 16, 2021

Copy link
Copy Markdown
Member
  • In production unregister_service and unregister_all_services
    may happen at the same time during shutdown. We want to treat
    this as non-fatal since its expected to happen and it is unlikely
    that the callers know about each other.

Fixes #675

 - In production unregister_service and unregister_all_services
   may happen at the same time during shutdown. We want to treat
   this as non-fatal since its expected to happen and it is unlikely
   that the callers know about each other.
@codecov-commenter

codecov-commenter commented Jun 16, 2021

Copy link
Copy Markdown

Codecov Report

Merging #679 (7ff6660) into master (57c94bb) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #679   +/-   ##
=======================================
  Coverage   97.80%   97.80%           
=======================================
  Files          17       17           
  Lines        2093     2095    +2     
  Branches      363      364    +1     
=======================================
+ Hits         2047     2049    +2     
  Misses         27       27           
  Partials       19       19           
Impacted Files Coverage Δ
zeroconf/_services/registry.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57c94bb...7ff6660. Read the comment docs.

@bdraco
bdraco merged commit d3d439a into python-zeroconf:master Jun 16, 2021
@bdraco
bdraco deleted the unregister_compete branch June 16, 2021 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make removal of missing service from the registry non-fatal

2 participants