Skip to content

Commit 160b264

Browse files
authored
fix: Protocol Stop function muxer to UnregisterProtocol (#755)
1 parent 681be3c commit 160b264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocol/protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (p *Protocol) Stop() {
163163
if p.config.Role == ProtocolRoleServer {
164164
muxerProtocolRole = muxer.ProtocolRoleResponder
165165
}
166-
p.config.Muxer.RegisterProtocol(
166+
p.config.Muxer.UnregisterProtocol(
167167
p.config.ProtocolId,
168168
muxerProtocolRole,
169169
)

0 commit comments

Comments
 (0)