default last_seen to sane values so we don't orphan all sessions right away. =/

git-svn-id: file:///home/svn/framework3/trunk@12446 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-04-26 21:29:47 +00:00
parent 956dcfa6d2
commit f72c94b514
1 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,7 @@ class DBManager
:routes => [],
:datastore => session.exploit_datastore.to_h,
:opened_at => Time.now.utc,
:last_seen => Time.now.utc,
:local_id => session.sid
}
elsif opts[:host]
@ -466,6 +467,7 @@ class DBManager
:datastore => opts[:datastore],
:opened_at => opts[:opened_at],
:closed_at => opts[:closed_at],
:last_seen => opts[:last_seen] || opts[:closed_at],
:close_reason => opts[:close_reason],
}
else