Skip to content

Commit 4b34536

Browse files
netvldignifiedquire
authored andcommitted
fix(idle): correct response value for manual interrupt in IDLE
`Handle::wait()` method returned `IdleResponse::Timeout` in case the idling process is manually canceled instead of `IdleResponse::ManualInterrrupt` (which is actually not used anywhere).
1 parent e8a4bbb commit 4b34536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/idle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl<T: Read + Write + Unpin + fmt::Debug> Handle<T> {
130130
}
131131
}
132132

133-
Ok(IdleResponse::Timeout)
133+
Ok(IdleResponse::ManualInterrupt)
134134
};
135135

136136
(fut, interrupt)

0 commit comments

Comments
 (0)