diff --git a/protocol/mtproxy/inbound.go b/protocol/mtproxy/inbound.go index d999d92c..838bc78a 100644 --- a/protocol/mtproxy/inbound.go +++ b/protocol/mtproxy/inbound.go @@ -102,10 +102,9 @@ func (n *Inbound) Start(stage adapter.StartStage) error { } func (n *Inbound) Close() error { + err := common.Close(&n.listener) n.proxy.Shutdown() - return common.Close( - &n.listener, - ) + return err } func (h *Inbound) UpdateUsers(users []option.MTProxyUser) {