Skip to content

Commit

Permalink
discord: use dispose*
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Jun 1, 2024
1 parent 740744e commit a25573b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extra/discord/discord.factor
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ TUPLE: discord-bot-config
metadata
discord-bot mailbox connect-thread ;

TUPLE: discord-bot
TUPLE: discord-bot < disposable
config in out bot-thread heartbeat-thread
send-heartbeat? reconnect? stop?
sequence-number
Expand Down Expand Up @@ -472,7 +472,7 @@ DEFER: discord-reconnect
] "Discord Bot" spawn >>bot-thread discord-bot-config get discord-bot<<
] if ;

M: discord-bot dispose
M: discord-bot dispose*
f >>reconnect?
t >>stop?
f >>send-heartbeat?
Expand Down

0 comments on commit a25573b

Please sign in to comment.