package handler

import (
	"log"

	"github.com/qy/hw-ws-service/internal/connection"
)

// HandleAbort 处理硬件发来的 {"type":"abort"} 指令，中止当前播放。
func HandleAbort(conn *connection.Connection) {
	log.Printf("[abort][%s] stopping playback", conn.DeviceID)
	conn.StopPlayback()
}
