mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Use QSet for tracking server connections
We don't need to maintain order between connections so QSet would be more suitable.
This commit is contained in:
parent
a35b6cc8dd
commit
a2a669572c
2 changed files with 5 additions and 4 deletions
|
@ -31,6 +31,7 @@
|
|||
#ifndef HTTP_SERVER_H
|
||||
#define HTTP_SERVER_H
|
||||
|
||||
#include <QSet>
|
||||
#include <QSslCertificate>
|
||||
#include <QSslKey>
|
||||
#include <QTcpServer>
|
||||
|
@ -59,7 +60,7 @@ namespace Http
|
|||
void removeConnection(Connection *connection);
|
||||
|
||||
IRequestHandler *m_requestHandler;
|
||||
QList<Connection *> m_connections; // for tracking persistent connections
|
||||
QSet<Connection *> m_connections; // for tracking persistent connections
|
||||
|
||||
bool m_https;
|
||||
QList<QSslCertificate> m_certificates;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue