windows-afsifs-20050804
[openafs.git] / src / WINNT / afsd / afsd.c
index 7acd6aa..f977c22 100644 (file)
@@ -276,11 +276,10 @@ LONG APIENTRY MainWndProc(
                break;
 
            case WM_DESTROY:
-#ifndef AFSIFS
-               RpcMgmtStopServerListening(NULL);
-#else
+#ifdef AFSIFS
                SetEvent(DoTerminate);
 #endif
+               RpcMgmtStopServerListening(NULL);
                PostQuitMessage(0);
                break;