From 98f52fba51f5946152cb815e037b6331859010d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 10 Jul 2019 16:24:27 +0300 Subject: [PATCH] Notify others about going offline --- ethermess.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ethermess.c b/ethermess.c index 23b118e..04fb1eb 100644 --- a/ethermess.c +++ b/ethermess.c @@ -895,6 +895,10 @@ int main(int argc, char **argv) { // Start the event loop eventloop(); + // Set our status to going offline and broadcast that + own_status = EMS_OFFLINE; + send_status(broadcast_mac); + // Close the socket (tho I'm not 100% sure it's needed) if (close(packet_socket) == -1) { err(1, "close");