summaryrefslogtreecommitdiffstats
path: root/src/rest.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2022-01-21 14:29:32 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2022-01-21 15:18:47 +0100
commit20301007a15deede9995da5e6cab3d18ecccedf8 (patch)
tree57816db0ef654fff8813fcf85d2b9134cc3d08f8 /src/rest.h
parentb8b3839bba75a96acc852d83b02434d921b0e065 (diff)
#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.
Diffstat (limited to 'src/rest.h')
-rw-r--r--src/rest.h1
1 files changed, 1 insertions, 0 deletions
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)
{