Dont block on notification
This commit is contained in:
@ -84,6 +84,8 @@ public class NostrStreamManager : IStreamManager
|
|||||||
|
|
||||||
var ev = await UpdateStreamState(UserStreamState.Live);
|
var ev = await UpdateStreamState(UserStreamState.Live);
|
||||||
|
|
||||||
|
_ = Task.Factory.StartNew(async () =>
|
||||||
|
{
|
||||||
if (_config.DiscordLiveWebhook != default)
|
if (_config.DiscordLiveWebhook != default)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -100,6 +102,8 @@ public class NostrStreamManager : IStreamManager
|
|||||||
_logger.LogWarning("Failed to send notification {msg}", ex.Message);
|
_logger.LogWarning("Failed to send notification {msg}", ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task StreamStopped()
|
public async Task StreamStopped()
|
||||||
|
Reference in New Issue
Block a user