fix: disable multithreading when realtime output is enabled
This commit is contained in:
parent
27abdc3687
commit
9bb15afa21
@ -168,6 +168,11 @@ func (cmd *PewCmd) Run(g *Globals) (err error) {
|
||||
cmd.useRemote = g.Remote
|
||||
cmd.remoteAddr = g.RemoteAddr
|
||||
|
||||
if cmd.RealtimeOutput && cmd.Threads != 1 {
|
||||
log.Warn().Msg("realtime output disables multithreading")
|
||||
cmd.Threads = 1
|
||||
}
|
||||
|
||||
if cmd.useRemote {
|
||||
c := client.Client{RemoteAddr: cmd.remoteAddr}
|
||||
cmd.Kcfg.Kernels, err = c.Kernels()
|
||||
|
Loading…
Reference in New Issue
Block a user