Removed defer

This commit is contained in:
obscuren 2014-05-14 11:56:06 +02:00
parent 7c0df348f8
commit 0512113bdd

View File

@ -69,12 +69,6 @@ func NewMessage(msgType MsgType, data interface{}) *Msg {
}
func ReadMessage(data []byte) (msg *Msg, remaining []byte, done bool, err error) {
defer func() {
if r := recover(); r != nil {
panic(fmt.Sprintf("message error %d %v", len(data), data))
}
}()
if len(data) == 0 {
return nil, nil, true, nil
}