Skip to content

Commit

Permalink
fix(loader): envData not synced after crash, fix #1465
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieuzest authored Oct 14, 2024
1 parent d06e1e9 commit e91840e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/loader/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ export abstract class Loader {
if (this.envData.message) {
const { sid, channelId, guildId, content } = this.envData.message
this.envData.message = null
process.send({ type: 'shared', body: JSON.stringify(this.envData) })
const dispose = app.on('bot-status-updated', (bot) => {
if (bot.sid !== sid || bot.status !== Universal.Status.ONLINE) return
dispose()
Expand Down

0 comments on commit e91840e

Please sign in to comment.