set rx and txBytes to zero on initialization (#4569)

This commit is contained in:
ebbit1q
2022-02-09 17:57:35 +01:00
committed by GitHub
parent bf08a04cda
commit 252883f67e

View File

@@ -194,8 +194,8 @@ void Servatrice_IslServer::incomingConnection(qintptr socketDescriptor)
}
Servatrice::Servatrice(QObject *parent)
: Server(parent), authenticationMethod(AuthenticationNone), uptime(0), shutdownTimer(nullptr),
isFirstShutdownMessage(true)
: Server(parent), authenticationMethod(AuthenticationNone), uptime(0), txBytes(0), rxBytes(0),
shutdownTimer(nullptr), isFirstShutdownMessage(true)
{
qRegisterMetaType<QSqlDatabase>("QSqlDatabase");
}