diff options
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r-- | src/net/net.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp index 86f7dc13..3a389db2 100644 --- a/src/net/net.cpp +++ b/src/net/net.cpp @@ -21,7 +21,6 @@ #include "net/net.h" -#include "main.h" #include "log.h" #include "net/adminhandler.h" @@ -179,8 +178,7 @@ void connectToServer(ServerInfo &server) void unload() { - GeneralHandler *handler = getGeneralHandler(); - if (handler) + if (GeneralHandler *handler = getGeneralHandler()) { handler->unload(); } |