Dispose of log's streamwriter properly.
Fixes issues if TShock is reloaded.
This commit is contained in:
parent
1ce950fa32
commit
b0becb50d1
2 changed files with 9 additions and 0 deletions
|
|
@ -309,6 +309,7 @@ namespace TShockAPI
|
|||
File.Delete(Path.Combine(SavePath, "tshock.pid"));
|
||||
}
|
||||
RestApi.Dispose();
|
||||
Log.Dispose();
|
||||
}
|
||||
|
||||
base.Dispose(disposing);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue