gameServer2/src/server/handlers/mod.rs
changeset 13419 81e0ed105f5d
parent 13119 1e39b8749072
child 13444 914f9b970f4d
--- a/gameServer2/src/server/handlers/mod.rs	Thu Jun 21 23:09:20 2018 +0200
+++ b/gameServer2/src/server/handlers/mod.rs	Thu Jun 21 17:23:10 2018 -0400
@@ -15,7 +15,7 @@
 pub fn handle(server: &mut HWServer, token: usize, message: HWProtocolMessage) {
     match message {
         HWProtocolMessage::Ping =>
-            server.react(token, vec![SendMe(Pong)]),
+            server.react(token, vec![Pong.send_self().action()]),
         HWProtocolMessage::Quit(Some(msg)) =>
             server.react(token, vec![ByeClient("User quit: ".to_string() + &msg)]),
         HWProtocolMessage::Quit(None) =>