Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3f8508

Browse files
committed
close sendCh after sending stop response
1 parentbc5fe4e commite3f8508

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎vpn/tunnel.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,7 @@ func (t *Tunnel) requestLoop() {
103103
ifreq.msg.Rpc!=nil&&req.msg.Rpc.MsgId!=0 {
104104
t.handleRPC(req)
105105
if_,ok:=req.msg.GetMsg().(*ManagerMessage_Stop);ok {
106-
// TODO: Wait for the reply to be sent before closing the speaker.
107-
// err := t.speaker.Close()
108-
// if err != nil {
109-
// t.logger.Error(t.ctx, "failed to close speaker", slog.Error(err))
110-
// }
106+
close(t.sendCh)
111107
return
112108
}
113109
continue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp