fix: drop memberships

pull/319/head
Alex 2019-05-16 12:16:44 +02:00
parent 9c67150884
commit fbe19d886a
1 changed files with 4 additions and 2 deletions

View File

@ -39,8 +39,10 @@ waybar::modules::Network::~Network() {
}
if (ev_sock_ != nullptr) {
nl_socket_drop_membership(ev_sock_, RTNLGRP_LINK);
nl_socket_drop_membership(ev_sock_, RTMGRP_IPV4_IFADDR);
nl_socket_drop_membership(ev_sock_, RTMGRP_IPV6_IFADDR);
nl_socket_drop_membership(ev_sock_, RTNLGRP_IPV4_IFADDR);
nl_socket_drop_membership(ev_sock_, RTNLGRP_IPV6_IFADDR);
nl_socket_drop_membership(ev_sock_, RTNLGRP_IPV4_ROUTE);
nl_socket_drop_membership(ev_sock_, RTNLGRP_IPV6_ROUTE);
nl_close(ev_sock_);
nl_socket_free(ev_sock_);
}