summaryrefslogtreecommitdiff
path: root/include/inspsocket.h
diff options
context:
space:
mode:
authorlinuxdaemon <linuxdaemon@users.noreply.github.com>2019-01-14 05:48:45 -0600
committerPeter Powell <petpow@saberuk.com>2019-01-14 11:48:45 +0000
commitf400d5f394a258dee58fb56420acd65e22503761 (patch)
treeeaf405f6da42adad8e92535e0f9b3b72b275ab3e /include/inspsocket.h
parent0a7d2456d9e8b5a506e4619c40caef4606864502 (diff)
Redo OnSetEndPoint logic to fix duplicate clones (#1549).
Diffstat (limited to 'include/inspsocket.h')
-rw-r--r--include/inspsocket.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/inspsocket.h b/include/inspsocket.h
index e432f9c16..69fdaac8b 100644
--- a/include/inspsocket.h
+++ b/include/inspsocket.h
@@ -312,8 +312,9 @@ class CoreExport StreamSocket : public EventHandler
/** Called when the endpoint addresses are changed.
* @param local The new local endpoint.
* @param remote The new remote endpoint.
+ * @return true if the connection is still open, false if it has been closed
*/
- virtual void OnSetEndPoint(const irc::sockets::sockaddrs& local, const irc::sockets::sockaddrs& remote) { }
+ virtual bool OnSetEndPoint(const irc::sockets::sockaddrs& local, const irc::sockets::sockaddrs& remote);
/** Send the given data out the socket, either now or when writes unblock
*/