Dont block on notification

This commit is contained in:
2024-05-08 18:59:33 +01:00
parent e852e20880
commit ae4f594394

View File

@ -84,6 +84,8 @@ public class NostrStreamManager : IStreamManager
var ev = await UpdateStreamState(UserStreamState.Live);
_ = Task.Factory.StartNew(async () =>
{
if (_config.DiscordLiveWebhook != default)
{
try
@ -100,6 +102,8 @@ public class NostrStreamManager : IStreamManager
_logger.LogWarning("Failed to send notification {msg}", ex.Message);
}
}
});
}
public async Task StreamStopped()