Move activeConnections to Server
This commit is contained in:
@@ -36,7 +36,9 @@ ConnectionRegistry::~ConnectionRegistry() {
|
||||
for (size_t fd = 0; fd < max_fds_; ++fd) {
|
||||
delete connections_[fd];
|
||||
}
|
||||
munmap(connections_, aligned_size_);
|
||||
if (munmap(connections_, aligned_size_) == -1) {
|
||||
perror("munmap");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user