Skip to content

Commit

Permalink
minor refactoring of code
Browse files Browse the repository at this point in the history
  • Loading branch information
firefly2442 committed Jul 22, 2012
1 parent 1cdadd3 commit 373e6f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Arma2NETMySQLPlugin/Arma2NETMySQLPlugin.cs
Expand Up @@ -59,10 +59,7 @@ public override string Invoke(string args, int maxResultSize)

public override void Unload()
{
Logger.addMessage(Logger.LogType.Info, "Unloading plugin.");
MySQL.dbs.shutdown();
Logger.Stop();
Startup.started_up = false;
Startup.Unload();
}
}

Expand Down Expand Up @@ -107,10 +104,7 @@ public override string Invoke(string args, int maxResultSize)

public override void Unload()
{
Logger.addMessage(Logger.LogType.Info, "Unloading plugin.");
MySQL.dbs.shutdown();
Logger.Stop();
Startup.started_up = false;
Startup.Unload();
}
}
}
8 changes: 8 additions & 0 deletions Arma2NETMySQLPlugin/Startup.cs
Expand Up @@ -38,5 +38,13 @@ public static void StartupConnection()
started_up = true;
}
}

public static void Unload()
{
Logger.addMessage(Logger.LogType.Info, "Unloading plugin.");
MySQL.dbs.shutdown();
Logger.Stop();
Startup.started_up = false;
}
}
}

0 comments on commit 373e6f5

Please sign in to comment.