server/peer.c, server/admin.c: Introduce `p_destroyall'.
[tripe] / server / admin.c
index 90ef4ef..05cd168 100644 (file)
@@ -565,7 +565,7 @@ void a_notify(const char *fmt, ...)
 void a_quit(void)
 {
   a_unlisten();
-  FOREACH_PEER(p, { p_destroy(p, 1); });
+  p_destroyall();
   ps_quit();
   exit(0);
 }