Skip to content

Commit

Permalink
2.08 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cannasse committed Sep 25, 2011
1 parent 28b5472 commit 7945313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/Session.hx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Session extends SessionData {
for( f in FIELDS )
Reflect.setField(o,f,Reflect.field(this,f));
var oldData = data;
data = neko.Lib.serialize(o);
data = neko.Lib.stringReference(neko.Lib.serialize(o));
if( data != oldData )
mtime = Date.now();
super.update();
Expand All @@ -66,7 +66,7 @@ class Session extends SessionData {
return null;
var o;
try {
o = neko.Lib.unserialize(s.data);
o = neko.Lib.unserialize(neko.Lib.bytesReference(s.data));
} catch( e : Dynamic ) {
return null;
}
Expand Down

0 comments on commit 7945313

Please sign in to comment.