Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
relay: fix crash on /upgrade received from a client (weechat protocol)
Some commands like /upgrade sent by relay client can cause problems, because they were executed immediately (while relay code is running). The /upgrade command unloads all plugins, so the result is unpredictable (it can cause a crash). This commit adds a timer (1 millisecond) to delay the execution of command after we go back in the WeeChat main loop.
- Loading branch information
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters