There was an error while loading. Please reload this page.
1 parent 27eace1 commit effe9d3Copy full SHA for effe9d3
1 file changed
src/channels.rs
@@ -374,6 +374,9 @@ impl Inner {
374
) -> Result<Channel> {
375
debug!("create channel");
376
self.channel_id.set_max(self.configuration.channel_max());
377
+ if self.channels.len() >= self.configuration.channel_max() as usize {
378
+ return Err(ErrorKind::ChannelsLimitReached.into());
379
+ }
380
let first_id = self.channel_id.next();
381
let mut id = first_id;
382
let mut met_first_id = false;
0 commit comments