From 110956d936469137e54bbe99fc5f9051bd285959 Mon Sep 17 00:00:00 2001 From: nsf Date: Sun, 24 Jun 2012 17:10:53 +0600 Subject: [PATCH] Fix Marshaler case. --- bencode/encode.go | 1 + 1 file changed, 1 insertion(+) 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() {