diff options
| author | Vlad Yaroslavlev <vladon@vladon.dev> | 2026-01-02 18:13:32 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-02 18:13:32 +0300 |
| commit | 278aa1c85c6af86a64326c924a746eeec5865389 (patch) | |
| tree | 43adbd6ae1ae4999e331f90ade07a48a6093091b /web/controller | |
| parent | 8fe297ef9d519995557add08c1e439381272dbed (diff) | |
Fix telegram bot issue (#3608)
* fix: improve Telegram bot handling for concurrent starts and graceful shutdown
- Added logic to stop any existing long-polling loop when Start is called again.
- Introduced a mutex to manage access to shared state variables, ensuring thread safety.
- Updated the OnReceive method to prevent multiple concurrent executions.
- Enhanced Stop method to ensure proper cleanup of resources and state management.
* fix: enhance Telegram bot's long-polling management
- Improved handling of concurrent starts by stopping existing long-polling loops.
- Implemented mutex for thread-safe access to shared state variables.
- Updated OnReceive method to prevent multiple executions.
- Enhanced Stop method for better resource cleanup and state management.
* .
Diffstat (limited to 'web/controller')
0 files changed, 0 insertions, 0 deletions
