From 46b39978c629b1a25873d3bab9392af8ce13185f Mon Sep 17 00:00:00 2001 From: David Golden Date: Mon, 7 Jan 2013 07:13:16 -0500 Subject: [PATCH] flush sessions properly during create() --- lib/Dancer/Core/Role/SessionFactory.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Dancer/Core/Role/SessionFactory.pm b/lib/Dancer/Core/Role/SessionFactory.pm index fe078616c..01600c213 100644 --- a/lib/Dancer/Core/Role/SessionFactory.pm +++ b/lib/Dancer/Core/Role/SessionFactory.pm @@ -154,7 +154,7 @@ sub create { $self->execute_hook('engine.session.before_create', $session); - eval { $self->_flush($session) }; + eval { $self->_flush($session->id, $session->data) }; croak "Unable to create a new session: $@" if $@;