From ee3fa0bc3852dbfb135edff4561fd51f98f547d4 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 29 Jul 2024 21:11:15 +0200 Subject: [PATCH] net/udpbroadcastrelay: remove these as well --- net/udpbroadcastrelay/Makefile | 2 +- .../OPNsense/UDPBroadcastRelay/Api/ServiceController.php | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/net/udpbroadcastrelay/Makefile b/net/udpbroadcastrelay/Makefile index b57ee6954..0dd56ef13 100644 --- a/net/udpbroadcastrelay/Makefile +++ b/net/udpbroadcastrelay/Makefile @@ -1,6 +1,6 @@ PLUGIN_NAME= udpbroadcastrelay PLUGIN_VERSION= 1.0 -PLUGIN_REVISION= 4 +PLUGIN_REVISION= 5 PLUGIN_COMMENT= Control udpbroadcastrelay processes PLUGIN_DEPENDS= udpbroadcastrelay PLUGIN_MAINTAINER= mjwasley@gmail.com diff --git a/net/udpbroadcastrelay/src/opnsense/mvc/app/controllers/OPNsense/UDPBroadcastRelay/Api/ServiceController.php b/net/udpbroadcastrelay/src/opnsense/mvc/app/controllers/OPNsense/UDPBroadcastRelay/Api/ServiceController.php index c036ae0c0..09e6feb63 100644 --- a/net/udpbroadcastrelay/src/opnsense/mvc/app/controllers/OPNsense/UDPBroadcastRelay/Api/ServiceController.php +++ b/net/udpbroadcastrelay/src/opnsense/mvc/app/controllers/OPNsense/UDPBroadcastRelay/Api/ServiceController.php @@ -63,9 +63,6 @@ class ServiceController extends ApiMutableModelControllerBase public function startAction($uuid) { $result = array("result" => "failed", "function" => "start"); - if ($this->request->isPost()) { - $this->sessionClose(); - } if ($uuid != null) { $mdlUDPBroadcastRelay = new UDPBroadcastRelay(); $node = $mdlUDPBroadcastRelay->getNodeByReference('udpbroadcastrelay.' . $uuid); @@ -84,9 +81,6 @@ class ServiceController extends ApiMutableModelControllerBase public function stopAction($uuid) { $result = array("result" => "failed", "function" => "stop"); - if ($this->request->isPost()) { - $this->sessionClose(); - } if ($uuid != null) { $mdlUDPBroadcastRelay = new UDPBroadcastRelay(); $node = $mdlUDPBroadcastRelay->getNodeByReference('udpbroadcastrelay.' . $uuid); @@ -104,9 +98,6 @@ class ServiceController extends ApiMutableModelControllerBase */ public function restartAction($uuid) { - if ($this->request->isPost()) { - $this->sessionClose(); - } if ($uuid != null) { $mdlUDPBroadcastRelay = new UDPBroadcastRelay(); $node = $mdlUDPBroadcastRelay->getNodeByReference('udpbroadcastrelay.' . $uuid);