Browse Source

fix: stream is not deleted actually

倪天华 1 year ago
parent
commit
7b25eb4d27
1 changed files with 5 additions and 0 deletions
  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",
 	})