desklink: Use early return, no functional change.
This commit is contained in:
parent
77c35db9a9
commit
5c7707fc34
@ -302,12 +302,14 @@ VolumeControl::MessageReceived(BMessage* msg)
|
|||||||
|
|
||||||
bool isMediaServer = !strcmp(signature, kMediaServerSignature);
|
bool isMediaServer = !strcmp(signature, kMediaServerSignature);
|
||||||
bool isAddOnServer = !strcmp(signature, kAddOnServerSignature);
|
bool isAddOnServer = !strcmp(signature, kAddOnServerSignature);
|
||||||
|
if (!isMediaServer && !isAddOnServer)
|
||||||
|
break;
|
||||||
|
|
||||||
if (isMediaServer)
|
if (isMediaServer)
|
||||||
fMediaServerRunning = msg->what == B_SOME_APP_LAUNCHED;
|
fMediaServerRunning = msg->what == B_SOME_APP_LAUNCHED;
|
||||||
if (isAddOnServer)
|
if (isAddOnServer)
|
||||||
fAddOnServerRunning = msg->what == B_SOME_APP_LAUNCHED;
|
fAddOnServerRunning = msg->what == B_SOME_APP_LAUNCHED;
|
||||||
|
|
||||||
if (isMediaServer || isAddOnServer) {
|
|
||||||
if (!fMediaServerRunning && !fAddOnServerRunning) {
|
if (!fMediaServerRunning && !fAddOnServerRunning) {
|
||||||
// No media server around
|
// No media server around
|
||||||
SetLabel(B_TRANSLATE("No media server running"));
|
SetLabel(B_TRANSLATE("No media server running"));
|
||||||
@ -327,7 +329,6 @@ VolumeControl::MessageReceived(BMessage* msg)
|
|||||||
BMessageRunner::StartSending(this, &reconnect, 1000000LL, 1);
|
BMessageRunner::StartSending(this, &reconnect, 1000000LL, 1);
|
||||||
fConnectRetries = 3;
|
fConnectRetries = 3;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user