Merge pull request #3289 from yangyingchao/yc-hacking
This commit is contained in:
commit
35a9ca476d
|
@ -86,7 +86,14 @@ void IPC::startIPC() {
|
||||||
std::string messageReceived(buffer.data());
|
std::string messageReceived(buffer.data());
|
||||||
messageReceived = messageReceived.substr(0, messageReceived.find_first_of('\n'));
|
messageReceived = messageReceived.substr(0, messageReceived.find_first_of('\n'));
|
||||||
spdlog::debug("hyprland IPC received {}", messageReceived);
|
spdlog::debug("hyprland IPC received {}", messageReceived);
|
||||||
parseIPC(messageReceived);
|
|
||||||
|
try {
|
||||||
|
parseIPC(messageReceived);
|
||||||
|
} catch (std::exception& e) {
|
||||||
|
spdlog::warn("Failed to parse IPC message: {}, reason: {}", messageReceived, e.what());
|
||||||
|
} catch (...) {
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue