Skip to content

Commit

Permalink
Merge pull request #24 from Rapougnac/fix-crash-win
Browse files Browse the repository at this point in the history
Fix crashing on windows
  • Loading branch information
l7ssha authored Aug 21, 2022
2 parents 53ea2e8 + 73e906e commit a26b0d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.0.1
__Bug fixes__:

- Fix crash on Windows

## 2.0.0
__New features__:
- Added a CLI for easier usage of nyxx_sharding. Run `dart pub global activate nyxx_sharding` to enable the CLI and then `nyxx-sharding --help` for more.
Expand Down
4 changes: 4 additions & 0 deletions lib/src/sharding_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ class ShardingManager with ShardingServer implements IShardingManager {
}

for (final signal in [ProcessSignal.sigint, ProcessSignal.sigterm]) {
if (Platform.isWindows && signal == ProcessSignal.sigterm) {
break;
}

signal.watch().listen((event) async {
_logger.info('Exiting...');

Expand Down

0 comments on commit a26b0d3

Please sign in to comment.