matchbot/src
Sebastian Crane 0abd793fe7 Use a Var instead of an Atom for system state
The Atom's swap! function may run its provided function multiple
times. Because of this, using an Atom for the system state can
occasionally result in duplicate TCP connections being opened when the
system is started. These connections remain open until they
timeout (this is typically 5 minutes for IRC).

This commit changes the container for the system state from an Atom to a
Var, whose alter-var-root function (analogous to swap!) does not have
this issue.

Signed-off-by: Sebastian Crane <seabass-labrax@gmx.com>
2022-03-22 22:47:00 +00:00
..
bot.clj Add !help IRC command 2022-02-27 21:53:45 +00:00
game.clj Prune empty game if removing its only player 2022-02-09 21:25:20 +00:00
irc.clj Fix exception when dispatch-command returns nil 2022-02-28 21:09:05 +00:00
system.clj Use a Var instead of an Atom for system state 2022-03-22 22:47:00 +00:00