Skip to content

Commit 3936e4f

Browse files
author
Matthias Radestock
committed
remove hack
1 parent 9dc09a0 commit 3936e4f

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/client/impl/SessionManager.cs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -84,26 +84,7 @@ public ushort ChannelMax
8484
}
8585
set
8686
{
87-
if ((value < 2) && (value != 0))
88-
{
89-
// We currently interpret channel max as
90-
// *including* channel zero. We also think it
91-
// doesn't make sense to forbid opening of any
92-
// real usable channels, so by our ch0-including
93-
// assumption, the minimum *useful* value for
94-
// channel max is 2.
95-
//
96-
// This code is here to work around OpenAMQ
97-
// 1.2c4's channel max setting of 1.
98-
//
99-
// FIXME: warning? or is there something more
100-
// sensible we can do here?
101-
m_channelMax = 2;
102-
}
103-
else
104-
{
105-
m_channelMax = value;
106-
}
87+
m_channelMax = value;
10788
}
10889
}
10990

0 commit comments

Comments
 (0)