Skip to content

Commit

Permalink
remove unecessary traces
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Aug 21, 2018
1 parent 14a8840 commit d9fcadf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"tags": ["multiplayer", "networking", "websockets", "netcode"],
"description": "Multiplayer Game Client for Haxe",
"version": "0.9.2",
"version": "0.9.3",
"classPath": "src/",
"releasenote": "Initial release, everything is working correctly.",
"contributors": ["endel"],
Expand Down
12 changes: 3 additions & 9 deletions src/io/colyseus/Client.hx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ class Client {
// send the request to the server.
this.connection.send([Protocol.ROOM_LIST, requestId, roomName]);

this.roomsAvailableRequests[requestId] = function(roomsAvailable) {
this.roomsAvailableRequests.set(requestId, function(roomsAvailable) {
removeRequest();
rejectionTimeout.stop();
callback(roomsAvailable);
};
});
}

public function close() {
Expand Down Expand Up @@ -165,13 +165,7 @@ class Client {

if (this.roomsAvailableRequests.exists(requestId)) {
var callback = this.roomsAvailableRequests.get(requestId);
var roomsAvailable: Array<RoomAvailable> = cast message[2];

trace("Protocol.ROOM_LIST message => " + Std.string(message[2]));
trace("ROOM ID => " + roomsAvailable[0].roomId);
callback(cast (message[2]));

this.roomsAvailableRequests.remove(requestId);
callback(cast message[2]);

} else {
trace('receiving ROOM_LIST after timeout:' + message[2]);
Expand Down

0 comments on commit d9fcadf

Please sign in to comment.