client send session 0x7fffffff

This commit is contained in:
云风
2012-08-10 19:20:58 +08:00
parent 85f353b679
commit 70271817a1
4 changed files with 8 additions and 5 deletions

View File

@@ -95,7 +95,7 @@ skynet_context_new(const char * name, const char *param) {
int
skynet_context_newsession(struct skynet_context *ctx) {
int session = ++ctx->session_id;
if (session < 0) {
if (session >= 0x7fffffff) {
ctx->session_id = 1;
return 1;
}