diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index 7c87c7ae..e3cbb8f0 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -222,6 +222,9 @@ static inline void send_final_numeric(GAtServer *server, GAtServerResult result) void g_at_server_send_final(GAtServer *server, GAtServerResult result) { + if (server == NULL) + return; + if (server->final_sent != FALSE) return;