Skip to content

Commit

Permalink
fix: verbose logging listener
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Mar 8, 2024
1 parent ef1f2fd commit 1f9fd5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.13.5

## Fix

- Verbose logger listener (when 2 times startListening is called)

# 0.13.4

## Update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class VerboseLoggingListener {
VerboseLoggingListener._();

static void startInputListener() {
_subscription?.cancel();
_subscription = stdin.listen((data) {
final input = String.fromCharCodes(data).trim();

Expand All @@ -21,5 +22,8 @@ class VerboseLoggingListener {
});
}

static void stopListening() => _subscription?.cancel();
static void stopListening() {
_subscription?.cancel();
_subscription = null;
}
}

0 comments on commit 1f9fd5d

Please sign in to comment.