Skip to content

Commit

Permalink
flush sessions properly during create()
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed Jan 7, 2013
1 parent 155c7a5 commit 46b3997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dancer/Core/Role/SessionFactory.pm
Expand Up @@ -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 $@;

Expand Down

0 comments on commit 46b3997

Please sign in to comment.