diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-20 18:03:08 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-20 18:03:08 +0000 |
commit | ff6ddee79b67f756477f08cd7793b0e26bbe71d9 (patch) | |
tree | df728e8b283dad5a8e71fdf6a419c9b61daac7d8 /src/net/network.h | |
parent | 1d30fc204176ff23a4a55e0319246ab530ae6454 (diff) | |
download | mana-ff6ddee79b67f756477f08cd7793b0e26bbe71d9.tar.gz mana-ff6ddee79b67f756477f08cd7793b0e26bbe71d9.tar.bz2 mana-ff6ddee79b67f756477f08cd7793b0e26bbe71d9.tar.xz mana-ff6ddee79b67f756477f08cd7793b0e26bbe71d9.zip |
Since the connection objects might not have been created yet when an exception
is thrown, check them for 0 before calling disconnect on them.
Diffstat (limited to 'src/net/network.h')
-rw-r--r-- | src/net/network.h | 3 |
1 files changed, 3 insertions, 0 deletions
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(); /** |