1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-02-09 16:28:54 +01:00

Log when sending message to primary instance fails

This commit is contained in:
Jonas Kvinge 2020-10-05 22:04:58 +02:00
parent eb749bd76f
commit 616875d0d2

View File

@ -150,7 +150,9 @@ int main(int argc, char* argv[]) {
if (options.is_empty()) { if (options.is_empty()) {
qLog(Info) << "Strawberry is already running - activating existing window (1)"; qLog(Info) << "Strawberry is already running - activating existing window (1)";
} }
core_app.sendMessage(options.Serialize(), 5000); if (!core_app.sendMessage(options.Serialize(), 5000)) {
qLog(Error) << "Could not send message to primary instance.";
}
return 0; return 0;
} }
} }
@ -180,7 +182,9 @@ int main(int argc, char* argv[]) {
if (options.is_empty()) { if (options.is_empty()) {
qLog(Info) << "Strawberry is already running - activating existing window (2)"; qLog(Info) << "Strawberry is already running - activating existing window (2)";
} }
a.sendMessage(options.Serialize(), 5000); if (!a.sendMessage(options.Serialize(), 5000)) {
qLog(Error) << "Could not send message to primary instance.";
}
return 0; return 0;
} }