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 {
|
pub fn deinit() void {
|
||||||
if (writer) |w| {
|
if (writer) |w| {
|
||||||
w.context.close();
|
w.context.close();
|
||||||
|
writer = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user