xmpp/xmpp.go
changeset 162 7b5586a5e109
parent 158 2d948fcbb5d7
child 163 3f891f7fe817
equal deleted inserted replaced
161:6570a6a9683b 162:7b5586a5e109
   286 	leftover := buf.String()
   286 	leftover := buf.String()
   287 	if leftover != "" {
   287 	if leftover != "" {
   288 		Debug.Log(buf)
   288 		Debug.Log(buf)
   289 	}
   289 	}
   290 }
   290 }
       
   291 
       
   292 func (cl *Client) Close() {
       
   293 	// Shuts down the receivers:
       
   294 	cl.setStatus(StatusShutdown)
       
   295 	// Shuts down the senders:
       
   296 	close(cl.Send)
       
   297 }