mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Close client connection on stop
This commit is contained in:
parent
a78d8d3a03
commit
e3be03ea73
@ -64,6 +64,12 @@ void QtHttpServer::start (quint16 port) {
|
||||
void QtHttpServer::stop (void) {
|
||||
if (m_sockServer->isListening ()) {
|
||||
m_sockServer->close ();
|
||||
// disconnect clients
|
||||
const QList<QTcpSocket*> socks = m_socksClientsHash.keys();
|
||||
for(auto sock : socks)
|
||||
{
|
||||
sock->close();
|
||||
}
|
||||
emit stopped ();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user