Update Mono.Nat library to fix freezing issue

If you had UPnP port forwarding activated when listening and then tried to stop listening the application would freeze up on 8768f3177c/Server/Core/Networking/Utilities/UPnP.cs (L105)
This commit is contained in:
ubbelol 2016-07-18 14:44:06 +02:00
parent 8ef33f4d17
commit 4ec1a191b9
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ namespace xServer.Core.Networking.Utilities
Mapping mapping = new Mapping(Protocol.Tcp, port, port);
for (int i = 0; i < 3; i++)
_device.CreatePortMap(mapping);
_device.CreatePortMapAsync(mapping);
if (_mappings.ContainsKey(mapping.PrivatePort))
_mappings[mapping.PrivatePort] = mapping;
@ -102,7 +102,7 @@ namespace xServer.Core.Networking.Utilities
try
{
for (int i = 0; i < 3; i++)
_device.DeletePortMap(mapping);
_device.DeletePortMapAsync(mapping);
}
catch (MappingException)
{

Binary file not shown.