Skip to content

Commit

Permalink
Merge pull request #177 from osociety/dev
Browse files Browse the repository at this point in the history
Dev -> Main
  • Loading branch information
git-elliot authored Feb 4, 2024
2 parents 6e08f17 + 5de4ba0 commit e5bacd8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## 4.0.4
1. Bug fix for sync runs when async flag is true

## 4.0.3
1. scanPortsForSingleDevice and customDiscover supports async mode now.

Expand Down
3 changes: 2 additions & 1 deletion lib/src/port_scanner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class PortScanner {
bool resultsInAddressAscendingOrder = true,
bool async = false,
}) async* {
if (async) {
if (!async) {
// If async is false then run on main isolate
yield* _customDiscover<ActiveHost>(
target,
portList: portList,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: network_tools
description: Networking Tools library which can help you discover open ports, devices on subnet and many other things.
version: 4.0.3
version: 4.0.4
issue_tracker: https://github.com/osociety/network_tools/issues
repository: https://github.com/osociety/network_tools

Expand Down

0 comments on commit e5bacd8

Please sign in to comment.