From ff6ddee79b67f756477f08cd7793b0e26bbe71d9 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 20 Apr 2008 18:03:08 +0000 Subject: Since the connection objects might not have been created yet when an exception is thrown, check them for 0 before calling disconnect on them. --- src/net/network.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/net') diff --git a/src/net/network.h b/src/net/network.h index 0701a956..42590adf 100644 --- a/src/net/network.h +++ b/src/net/network.h @@ -50,6 +50,9 @@ namespace Net */ void finalize(); + /** + * Returns a new Connection object. Should be deleted by the caller. + */ Connection *getConnection(); /** -- cgit v1.2.3-70-g09d2