Skip to content

Commit

Permalink
Merge branch 'stable' into 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kjnilsson committed Mar 28, 2017
2 parents 2002089 + 4b4ccaf commit efd5ddf
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class AutorecoveringConnection : IConnection, IRecoverable

protected List<AutorecoveringModel> m_models = new List<AutorecoveringModel>();

protected IDictionary<RecordedBinding, byte> m_recordedBindings =
protected ConcurrentDictionary<RecordedBinding, byte> m_recordedBindings =
new ConcurrentDictionary<RecordedBinding, byte>();

protected List<EventHandler<ConnectionBlockedEventArgs>> m_recordedBlockedEventHandlers =
Expand Down Expand Up @@ -416,7 +416,7 @@ public void DeleteRecordedBinding(RecordedBinding rb)
{
lock (m_recordedEntitiesLock)
{
m_recordedBindings.Remove(rb);
((IDictionary<RecordedBinding, byte>)m_recordedBindings).Remove(rb);
}
}

Expand Down Expand Up @@ -446,7 +446,7 @@ public void DeleteRecordedExchange(string name)
var bs = m_recordedBindings.Keys.Where(b => name.Equals(b.Destination));
foreach (RecordedBinding b in bs)
{
m_recordedBindings.Remove(b);
DeleteRecordedBinding(b);
MaybeDeleteRecordedAutoDeleteExchange(b.Source);
}
}
Expand All @@ -462,7 +462,7 @@ public void DeleteRecordedQueue(string name)
var bs = m_recordedBindings.Keys.Where(b => name.Equals(b.Destination));
foreach (RecordedBinding b in bs)
{
m_recordedBindings.Remove(b);
DeleteRecordedBinding(b);
MaybeDeleteRecordedAutoDeleteExchange(b.Source);
}
}
Expand Down Expand Up @@ -521,7 +521,7 @@ public void RecordBinding(RecordedBinding rb)
{
lock (m_recordedEntitiesLock)
{
m_recordedBindings.Add(rb, 0);
m_recordedBindings.TryAdd(rb, 0);
}
}

Expand Down

0 comments on commit efd5ddf

Please sign in to comment.