android-cuttlefish icon indicating copy to clipboard operation
android-cuttlefish copied to clipboard

Fix double closure of sockets while proxying ADB

Open k311093 opened this issue 1 year ago • 0 comments

While proxying ADB, wsWrapper.Close() is executed twice, at deferred function and inside go routine. Call wsWrapper.Close() only at go routine that writes data to the wsWrapper.

Also move tcpConn.Close() after io.Copy(...) to avoid confusion.

k311093 avatar Jul 17 '24 07:07 k311093