mirror of https://github.com/jetkvm/kvm.git
[WIP] Cleanup: PR Cleanup
This commit is contained in:
parent
6ee79b79c3
commit
274854b198
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue