mirror of
https://github.com/polybar/polybar.git
synced 2026-02-20 04:25:56 +00:00
Add error callback for ipc handle
This commit is contained in:
committed by
Patrick Ziegler
parent
52a3961602
commit
a158f0d7ec
@ -261,7 +261,8 @@ void controller::read_events(bool confwatch) {
|
||||
if (m_ipc) {
|
||||
eloop->pipe_handle(
|
||||
m_ipc->get_file_descriptor(), [this](const string payload) { m_ipc->receive_data(payload); },
|
||||
[this]() { m_ipc->receive_eof(); });
|
||||
[this]() { m_ipc->receive_eof(); },
|
||||
[this](int err) { m_log.err("libuv error while listening to IPC channel: %s", uv_strerror(err)); });
|
||||
}
|
||||
|
||||
if (!m_snapshot_dst.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user