[WIP] Cleanup: PR Cleanup

This commit is contained in:
Alex P 2025-09-20 01:38:16 +03:00
parent 6ee79b79c3
commit 274854b198
1 changed files with 0 additions and 9 deletions

View File

@ -3,7 +3,6 @@ package kvm
import (
"bufio"
"io"
"runtime"
"strconv"
"strings"
"time"
@ -142,10 +141,6 @@ func unmountDCControl() error {
var dcState DCPowerState
func runDCControl() {
// Lock to OS thread to isolate DC control serial I/O
runtime.LockOSThread()
defer runtime.UnlockOSThread()
scopedLogger := serialLogger.With().Str("service", "dc_control").Logger()
reader := bufio.NewReader(port)
hasRestoreFeature := false
@ -295,10 +290,6 @@ func handleSerialChannel(d *webrtc.DataChannel) {
d.OnOpen(func() {
go func() {
// Lock to OS thread to isolate serial I/O
runtime.LockOSThread()
defer runtime.UnlockOSThread()
buf := make([]byte, 1024)
for {
n, err := port.Read(buf)