From 24173de3cab2c095dab5d7fc262600b67b754ecc Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 21 Aug 2017 11:27:09 +0200 Subject: [PATCH] RestApi/ticket: shut down after sending ticket fixes #1079 --- library/Director/RestApi/IcingaObjectHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Director/RestApi/IcingaObjectHandler.php b/library/Director/RestApi/IcingaObjectHandler.php index 703cfd7d..902d7cd3 100644 --- a/library/Director/RestApi/IcingaObjectHandler.php +++ b/library/Director/RestApi/IcingaObjectHandler.php @@ -112,7 +112,9 @@ class IcingaObjectHandler extends RequestHandler ) ); - return; + // TODO: find a better way to shut down. Currently, this avoids + // "not found" errors: + exit; } switch ($request->getMethod()) {