From 7b25eb4d2729a6a2ddb8a8f665d9a491566b0600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=AA=E5=A4=A9=E5=8D=8E?= Date: Mon, 11 Mar 2024 21:41:20 +0800 Subject: [PATCH] fix: stream is not deleted actually --- api/streams/streams.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/streams/streams.go b/api/streams/streams.go index a91b1896..f757c878 100644 --- a/api/streams/streams.go +++ b/api/streams/streams.go @@ -345,6 +345,11 @@ func DeleteStream(c *gin.Context) { return } + if err = os.Remove(availablePath); err != nil { + api.ErrHandler(c, err) + return + } + c.JSON(http.StatusOK, gin.H{ "message": "ok", })