diff --git a/bencode/encode.go b/bencode/encode.go index eee55818..4a6eea17 100644 --- a/bencode/encode.go +++ b/bencode/encode.go @@ -98,6 +98,7 @@ func (e *encoder) reflect_value(v reflect.Value) { panic(&MarshalerError{v.Type(), err}) } e.write(data) + return } switch v.Kind() {