Skip to content

Start-Sniffer: No output file created when timeout reached. #4

@amnich

Description

@amnich

No output file is created when timeout is reached.

Problem code:

 # timeout after $Seconds...
        if ($Seconds -ne 0 -and ($([DateTime]::Now) -gt $starttime.addseconds($Seconds))) {
            return
        }

solution

 # timeout after $Seconds...
        if ($Seconds -ne 0 -and ($([DateTime]::Now) -gt $starttime.addseconds($Seconds))) {
            $running = $false
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions