mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 11:53:02 +00:00
fix bricking typo in prev commit
This commit is contained in:
parent
c24a682794
commit
8d7dad211d
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ bool socket_connect_un(int* sockfd, char* socket_path) {
|
|||
*sockfd = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||
if (*sockfd == -1) return false;
|
||||
|
||||
if (socket_set_timeout(*sockfd)) return false;
|
||||
if (!socket_set_timeout(*sockfd)) return false;
|
||||
|
||||
snprintf(socket_address.sun_path, sizeof(socket_address.sun_path), "%s", socket_path);
|
||||
return connect(*sockfd, (struct sockaddr *) &socket_address, sizeof(socket_address)) != -1;
|
||||
|
|
Loading…
Reference in a new issue