Fix events & more event tests

This commit is contained in:
jD91mZM2
2018-06-02 16:34:47 +02:00
parent af3813c518
commit 8a54eadae0
3 changed files with 133 additions and 87 deletions
+5 -3
View File
@@ -67,9 +67,11 @@ impl ChanScheme {
handle.notified_write = false;
}
} else {
if !handle.notified_write {
handle.notified_write = true;
post_fevent(file, *id, EVENT_WRITE)?;
if let Connection::Open(_) = handle.remote {
if !handle.notified_write {
handle.notified_write = true;
post_fevent(file, *id, EVENT_WRITE)?;
}
}
if !handle.buffer.is_empty() || handle.remote == Connection::Closed {
if !handle.notified_read {