Chore: solved some todos
This commit is contained in:
		| @@ -26,7 +26,6 @@ func init() { | ||||
| 	memcache = cache.MemCache | ||||
| 	cfg = config.LoadConfigOrDefault("") | ||||
| 	Notifier = broker.Notifier | ||||
| 	// go Notifier.Listen() | ||||
| } | ||||
|  | ||||
| func HandlePing(w http.ResponseWriter, r *http.Request) { | ||||
| @@ -84,6 +83,7 @@ func HandleExit(w http.ResponseWriter, r *http.Request) { | ||||
| 	if len(exitedRoom.PlayerList) == 0 || creatorLeft { | ||||
| 		removeRoom(exitedRoom.ID) | ||||
| 		// TODO: notify users if creator left | ||||
| 		// and throw them away | ||||
| 		notify(models.NotifyRoomListUpdate, "") | ||||
| 	} | ||||
| 	if err := saveState(fi.State.Username, fi.State); err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder