From 20301007a15deede9995da5e6cab3d18ecccedf8 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 21 Jan 2022 14:29:32 +0100 Subject: #915 release existing client on reconnections Trasient network problems might result in duplicated clients, drop client object if it already exists before creating a new one. --- src/rest.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rest.h') diff --git a/src/rest.h b/src/rest.h index fb1c1b6..d586ef6 100644 --- a/src/rest.h +++ b/src/rest.h @@ -65,6 +65,7 @@ struct og_client { }; void og_client_add(struct og_client *cli); +struct og_client *__og_client_find(const struct in_addr *addr); static inline int og_client_socket(const struct og_client *cli) { -- cgit v1.2.3-18-g5258