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");