Skip to content

Commit

Permalink
- fixed an issue were the posix_time in the clock object wasnt initia…
Browse files Browse the repository at this point in the history
…lized properly on start

Signed-off-by: schmunzel <schmunzel@swganh.org>
  • Loading branch information
schmunzel committed Jan 15, 2014
1 parent 153396a commit 3ce82d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NetworkManager/Session.cpp
Expand Up @@ -450,13 +450,13 @@ void Session::ProcessWriteThread(void)
{
if(this->mServerService)
{
LOG(info) << "Session disconnect last received packet > 60 ("<< diff << ") seconds - session Id : " << this->getId();
LOG(info) << "Session lastpacket " << mLastPacketReceived << " now " << now << " diff :" << diff;
LOG(info) << "Session disconnect last received packet > 60 ("<< diff.total_milliseconds() << ") seconds - session Id : " << this->getId();
LOG(info) << "Session lastpacket " << mLastPacketReceived.time_of_day() << " now " << now.time_of_day() << " diff :" << diff.total_milliseconds() ;
mCommand = SCOM_Disconnect;
}
else
{
LOG(info) << "Session disconnect last received packet > 60 ("<< diff << ") seconds session Id : " << this->getId();
LOG(info) << "Session disconnect last received packet > 60 ("<< diff.total_milliseconds() << ") seconds session Id : " << this->getId();

mCommand = SCOM_Disconnect;
}
Expand Down
1 change: 1 addition & 0 deletions src/anh/Utils/clock.cpp
Expand Up @@ -54,6 +54,7 @@ Clock::Clock()
mTimeDelta = time.time_of_day().total_milliseconds();

mStoredTime = getLocalTime();
mBoostTime = time;

mClockScheduler = new Anh_Utils::Scheduler(this);
mClockScheduler->addTask(fastdelegate::MakeDelegate(this,&Clock::_setStoredTime),1,1000,NULL);
Expand Down

0 comments on commit 3ce82d8

Please sign in to comment.