|
|
@ -294,7 +294,7 @@ func (s *ServerCommon) loadMessage() {
|
|
|
|
func (s *ServerCommon) sysMsg(message Message) {
|
|
|
|
func (s *ServerCommon) sysMsg(message Message) {
|
|
|
|
switch message.Key {
|
|
|
|
switch message.Key {
|
|
|
|
case "bye":
|
|
|
|
case "bye":
|
|
|
|
fmt.Println("recv stop signal from client", message.ClientConn.ClientID)
|
|
|
|
//fmt.Println("recv stop signal from client", message.ClientConn.ClientID)
|
|
|
|
if message.TransferMsg.Type == MSG_SYS_WAIT {
|
|
|
|
if message.TransferMsg.Type == MSG_SYS_WAIT {
|
|
|
|
message.Reply(nil)
|
|
|
|
message.Reply(nil)
|
|
|
|
}
|
|
|
|
}
|
|
|
|