Skip to content

Commit

Permalink
fix clientmanger timeout erro
Browse files Browse the repository at this point in the history
  • Loading branch information
dushibaiyu committed Sep 8, 2016
1 parent e9e6433 commit 6b2f132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/collie/bootstrap/client.d
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ protected:
_info.client = null;
_info.cback = null;
_info.addr = null;
_pipe = null;
}
}

Expand All @@ -146,7 +147,8 @@ protected:
/// Client Time out is not refresh!
void onTimeOut()
{
_pipe.timeOut();
if(_pipe)
_pipe.timeOut();
}

override void deletePipeline(PipelineBase pipeline)
Expand Down
1 change: 1 addition & 0 deletions source/collie/bootstrap/clientmanger.d
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ protected:
_manger = manger;
_pipe = pipe;
_pipe.finalize();
_pipe.pipelineManager(this);
}

private:
Expand Down

0 comments on commit 6b2f132

Please sign in to comment.