~ruther/NosTale-Gfless

2a270dbe0dd48e0b64fdd9993ea7adba93112bd8 — František Boháček 4 years ago 0433b50
fix: raise process exited event
2 files changed, 1 insertions(+), 10 deletions(-)

M NosTaleGfless/NostalePipeServer.cs
D NostaleAuth/Extensions/DictionaryExtension.cs
M NosTaleGfless/NostalePipeServer.cs => NosTaleGfless/NostalePipeServer.cs +1 -0
@@ 24,6 24,7 @@ namespace NosTaleGfless
            Process = process;
            _cancellationTokenSource = new CancellationTokenSource();

            Process.Process.EnableRaisingEvents = true;
            Process.Process.Exited += OnNostaleExit;
        }


D NostaleAuth/Extensions/DictionaryExtension.cs => NostaleAuth/Extensions/DictionaryExtension.cs +0 -10
@@ 1,10 0,0 @@
using System.Collections.Generic;

namespace NostaleAuth.Extensions
{
    public static class DictionaryExtension
    {
        public static V GetValueOrDefault<K, V>(this IDictionary<K, V> dictionary, K key, V value) => dictionary.TryGetValue(key, out V result) ? result : value;
        public static V GetValueOrDefault<K, V>(this IDictionary<K, V> dictionary, K key) => dictionary.GetValueOrDefault(key, default);
    }
}
\ No newline at end of file

Do not follow this link