summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index 50baac73..3b380367 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -121,10 +121,9 @@ Net::TradeHandler *Net::getTradeHandler()
namespace Net
{
- ServerInfo::Type networkType = ServerInfo::UNKNOWN;
-} // namespace Net
+ServerInfo::Type networkType = ServerInfo::UNKNOWN;
-void Net::connectToServer(const ServerInfo &server)
+void connectToServer(const ServerInfo &server)
{
// Remove with ifdefs
if (networkType != ServerInfo::UNKNOWN)
@@ -189,3 +188,13 @@ void Net::connectToServer(const ServerInfo &server)
getLoginHandler()->connect();
}
+
+void unload() {
+ GeneralHandler *handler = getGeneralHandler();
+ if (handler)
+ {
+ handler->unload();
+ }
+}
+
+} // namespace Net \ No newline at end of file