Prevent double printing of stop message
This commit is contained in:
parent
6cc5735000
commit
999be7b73a
@ -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()) << "-------------------------------------";
|
||||
|
||||
Reference in New Issue
Block a user