Fix IPC Source getting read from the incorrect location

This commit is contained in:
Shivam 2021-04-04 14:10:07 +02:00
parent f95b91e3b6
commit 5f1f8ec0ef
1 changed files with 2 additions and 2 deletions

View File

@ -34,10 +34,10 @@ public StableInfo(Storage storage)
TournamentStorage tStorage = (TournamentStorage)storage;
this.storage = tStorage.AllTournaments;
if (!storage.Exists(config_path))
if (!this.storage.Exists(config_path))
return;
using (Stream stream = storage.GetStream(config_path, FileAccess.Read, FileMode.Open))
using (Stream stream = this.storage.GetStream(config_path, FileAccess.Read, FileMode.Open))
using (var sr = new StreamReader(stream))
{
JsonConvert.PopulateObject(sr.ReadToEnd(), this);