URI:
       tDo graceful shutdown on service stop - vaccinewars - be a doctor and try to vaccinate the world
  HTML git clone git://src.adamsgaard.dk/vaccinewars
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 1522ef79fde515d771e15772860a649ab0744b65
   DIR parent b3955b3ba6ebbb62a9cfbf380bece28cc918cb7a
  HTML Author: Ben Webb <ben@salilab.org>
       Date:   Sat,  5 Dec 2020 00:42:22 -0800
       
       Do graceful shutdown on service stop
       
       When running as a Windows service, do
       a graceful shutdown if the service is
       stopped. This allows the server to
       disconnect any players and notify the
       metaserver.
       
       Diffstat:
         M src/serverside.c                    |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/src/serverside.c b/src/serverside.c
       t@@ -1602,7 +1602,7 @@ static LRESULT CALLBACK GuiServerWndProc(HWND hwnd, UINT msg,
            switch (msg) {
            case MYWM_SERVICE:
              if (lparam == SERVICE_CONTROL_STOP) {
       -        GuiQuitServer();
       +        RequestServerShutdown();
              }
              break;
            case MYWM_TASKBAR: