mirror of
https://github.com/nushell/nushell.git
synced 2025-05-30 14:50:02 +02:00
Fix job recv tagging behavior
Job recv was putting all untagged filters to the unread mailbox, which is now what we want. This commit fixes that
This commit is contained in:
parent
f73603a44e
commit
d126914aca
@ -273,7 +273,7 @@ impl Mailbox {
|
||||
while waited_so_far < timeout {
|
||||
let (tag, value) = self.receiver.recv_timeout(timeout - waited_so_far)?;
|
||||
|
||||
if filter_tag.is_some() && filter_tag == tag {
|
||||
if filter_tag.is_none() || filter_tag == tag {
|
||||
return Ok(value);
|
||||
} else {
|
||||
self.ignored_mail.add((tag, value));
|
||||
|
Loading…
x
Reference in New Issue
Block a user