mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 21:16:52 +01:00
Merge pull request #1565 from tgstation/MiscFixes
Fix incorrect Discord embed error messages. Fix potential deadlock when a directory copy gets cancelled
This commit is contained in:
@@ -975,7 +975,7 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
embedErrors.Add(
|
||||
String.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"Null or whitespace field author at index {0}!",
|
||||
"Null or whitespace field name at index {0}!",
|
||||
i));
|
||||
invalid = true;
|
||||
}
|
||||
@@ -985,7 +985,7 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
embedErrors.Add(
|
||||
String.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"Null or whitespace field author at index {0}!",
|
||||
"Null or whitespace field value at index {0}!",
|
||||
i));
|
||||
invalid = true;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Tgstation.Server.Host.Extensions;
|
||||
using Tgstation.Server.Host.Utils;
|
||||
|
||||
namespace Tgstation.Server.Host.IO
|
||||
@@ -387,7 +388,7 @@ namespace Tgstation.Server.Host.IO
|
||||
|
||||
async Task CopyThisFile()
|
||||
{
|
||||
await subdirCreationTask;
|
||||
await subdirCreationTask.WithToken(cancellationToken);
|
||||
using var lockContext = semaphore != null
|
||||
? await SemaphoreSlimContext.Lock(semaphore, cancellationToken)
|
||||
: null;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
|
||||
Reference in New Issue
Block a user