a051223
Branches > refactor/use-spec-1 > a051223 > files
Make read-and-handle-packet more exciting!!!
Commit: a051223e80d228b2a87d22c1ff045f94a5a759ed
Parent: 51b3975
1 changed file:
src/net/bowmap/minecraft_server.clj view file
@@ -19,7 +19,7 @@ :id (long (* (rand) Long/MAX_VALUE))}) (recur)))) -(defn read-and-handle-packet+(defn read-and-handle-packet! "Reads/deserializes one packet into a message, and handles it. Because packet reading is dependent on the state of the client, and handling a packet can update the state of the client, Reading and handling must be synchronized!"@@ -40,7 +40,7 @@ client)) packets-in ([pk] (when pk- (read-and-handle-packet pk client messages-out)))))+ (read-and-handle-packet! pk client messages-out))))) (defn connect! [client packets-in packets-out] (let [messages-out (chan 1024)]