Fix double close

Accidentally made file references not count as references and therefore also close the fd. My bad.
This commit is contained in:
jD91mZM2
2018-10-07 10:54:37 +02:00
parent 418a960f3b
commit 028378b8bf
+1 -1
View File
@@ -68,7 +68,7 @@ impl File {
pub unsafe fn get_ref(&self) -> Self {
Self {
fd: self.fd,
reference: false
reference: true
}
}
}