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