File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
24
24
(defn disconnect [uuid]
25
25
" Unsubscribe player identified by uuid from the events framework."
26
- (let [player (core/find-player-by-uuid uuid)
27
- observers (core/others-in-room player ( core/lookup-location player) )]
26
+ (let [player (core/find-player-by-uuid uuid)
27
+ observers (core/logout- player player)]
28
28
(core/modify-player! (dissoc player :send-function ))
29
29
(notify-players observers (format " %s fades slowly away." (:name player)))))
Original file line number Diff line number Diff line change 12
12
(println " Websocket connected: " con))
13
13
14
14
(defn close [con]
15
- (let [uuid (get clients con)]
15
+ (let [uuid (get @ clients con)]
16
16
(events/disconnect uuid))
17
17
(swap! clients dissoc con)
18
18
(println " Websocket disconnected: " con))
You can’t perform that action at this time.
0 commit comments