diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2022-01-21 14:29:32 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2022-01-21 15:18:47 +0100 |
commit | 20301007a15deede9995da5e6cab3d18ecccedf8 (patch) | |
tree | 57816db0ef654fff8813fcf85d2b9134cc3d08f8 /src/rest.h | |
parent | b8b3839bba75a96acc852d83b02434d921b0e065 (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |