瀏覽代碼

fix: stream is not deleted actually

Jacky 1 年之前
父節點
當前提交
4b277cf3c1
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      api/streams/streams.go

+ 5 - 0
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",
 	})