diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-01-27 15:19:39 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-02-25 18:57:42 +0100 |
| commit | 13466ad87b0df47dbdbee2096f21fb362727e562 (patch) | |
| tree | ef4e557f6a9cfb384bf7c7ba74284c39e38c93cf /tools/syz-testbed/instance.go | |
| parent | 76b1ee05242f92043cdb68c61bbaa2b7e20ab201 (diff) | |
tools/syz-testbed: make Instance.Stop() nonblocking
Diffstat (limited to 'tools/syz-testbed/instance.go')
| -rw-r--r-- | tools/syz-testbed/instance.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/syz-testbed/instance.go b/tools/syz-testbed/instance.go index f7293d289..6601a2c4a 100644 --- a/tools/syz-testbed/instance.go +++ b/tools/syz-testbed/instance.go @@ -63,7 +63,10 @@ func (inst *Instance) Run() error { } func (inst *Instance) Stop() { - inst.stopChannel <- true + select { + case inst.stopChannel <- true: + default: + } } func (inst *Instance) FetchResult() (*RunResult, error) { |
