awesome-client: reconnect if disconnected
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2dfde8c181
commit
6a295e8e8c
|
@ -100,6 +100,8 @@ send_msg(const char *msg, ssize_t msg_len)
|
||||||
warn("can't write to %s", addr->sun_path);
|
warn("can't write to %s", addr->sun_path);
|
||||||
break;
|
break;
|
||||||
case EPIPE:
|
case EPIPE:
|
||||||
|
case ENOTCONN:
|
||||||
|
case ECONNRESET:
|
||||||
sockets_reconnect();
|
sockets_reconnect();
|
||||||
return send_msg(msg, msg_len);
|
return send_msg(msg, msg_len);
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue