Prevent double printing of stop message

This commit is contained in:
Simon Stürz 2020-11-17 18:08:17 +01:00
parent 6cc5735000
commit 999be7b73a

View File

@ -476,6 +476,10 @@ void BluetoothServer::start()
void BluetoothServer::stop()
{
// Prevent printing the stop message twice in case of different shutdown reasons
if (!m_controller && !m_localDevice)
return;
qCDebug(dcNetworkManagerBluetoothServer()) << "-------------------------------------";
qCDebug(dcNetworkManagerBluetoothServer()) << "Stopping bluetooth server.";
qCDebug(dcNetworkManagerBluetoothServer()) << "-------------------------------------";