Skip to content

Conversation

@dsrees
Copy link
Owner

@dsrees dsrees commented Jul 8, 2019

Do not use .removeAll {} when removing a Channel, instead, filter out the channels that are to be removed. This aligns more closely to how the js client removes a Channel from a Socket and avoids a ConcurrentModificationException without messing up ongoing iterators.

@codecov-io
Copy link

Codecov Report

Merging #66 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #66      +/-   ##
============================================
+ Coverage     91.33%   91.36%   +0.03%     
- Complexity      177      178       +1     
============================================
  Files             9        9              
  Lines           531      533       +2     
  Branches         71       72       +1     
============================================
+ Hits            485      487       +2     
  Misses           13       13              
  Partials         33       33
Impacted Files Coverage Δ Complexity Δ
src/main/kotlin/org/phoenixframework/Socket.kt 92.68% <100%> (+0.09%) 71 <2> (+1) ⬆️

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 77ba73c...8018c7e. Read the comment docs.

@dsrees dsrees merged commit eaf9504 into master Jul 8, 2019
@dsrees dsrees deleted the dr/concurrent-exception branch July 8, 2019 17:05
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.

3 participants