modify Makefile and add lua clean

modify service-src/service_gate.c space to tab
This commit is contained in:
leeonix
2015-06-20 11:29:56 +08:00
parent 35b35f686c
commit 57999456ef
2 changed files with 2 additions and 1 deletions

View File

@@ -131,5 +131,6 @@ clean :
cleanall: clean
cd 3rd/jemalloc && $(MAKE) clean
cd 3rd/lua && $(MAKE) clean
rm -f $(LUA_STATICLIB)

View File

@@ -135,7 +135,7 @@ _ctrl(struct gate * g, const void * msg, int sz) {
skynet_socket_start(ctx, g->listen_id);
return;
}
if (memcmp(command, "close", i) == 0) {
if (memcmp(command, "close", i) == 0) {
if (g->listen_id >= 0) {
skynet_socket_close(ctx, g->listen_id);
g->listen_id = -1;