Fix bug where writer could be used after its file is closed
This commit is contained in:
parent
e2d1d26d0b
commit
ac5d97dcca
@ -25,6 +25,7 @@ pub fn setLevel(level: Level) void {
|
||||
pub fn deinit() void {
|
||||
if (writer) |w| {
|
||||
w.context.close();
|
||||
writer = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user