[longomatch] Fix deserialization fallback



commit a4f01a66ca5b89eaba548ab25a6b16db9bb63343
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu May 29 01:28:38 2014 +0200

    Fix deserialization fallback

 LongoMatch.Core/Common/SerializableObject.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Common/SerializableObject.cs b/LongoMatch.Core/Common/SerializableObject.cs
index 458d0c5..fccb9d7 100644
--- a/LongoMatch.Core/Common/SerializableObject.cs
+++ b/LongoMatch.Core/Common/SerializableObject.cs
@@ -94,6 +94,7 @@ namespace LongoMatch.Common
                                        return Load<T> (stream, SerializationType.Json);
                                } catch (Exception e) {
                                        Log.Exception (e);
+                                       stream.Seek (0, SeekOrigin.Begin);
                                        return Load<T> (stream, SerializationType.Binary);
                                }
                        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]