mirror of https://github.com/quasar/Quasar.git
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:
parent
8ef33f4d17
commit
4ec1a191b9
|
@ -70,7 +70,7 @@ namespace xServer.Core.Networking.Utilities
|
||||||
Mapping mapping = new Mapping(Protocol.Tcp, port, port);
|
Mapping mapping = new Mapping(Protocol.Tcp, port, port);
|
||||||
|
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < 3; i++)
|
||||||
_device.CreatePortMap(mapping);
|
_device.CreatePortMapAsync(mapping);
|
||||||
|
|
||||||
if (_mappings.ContainsKey(mapping.PrivatePort))
|
if (_mappings.ContainsKey(mapping.PrivatePort))
|
||||||
_mappings[mapping.PrivatePort] = mapping;
|
_mappings[mapping.PrivatePort] = mapping;
|
||||||
|
@ -102,7 +102,7 @@ namespace xServer.Core.Networking.Utilities
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 3; i++)
|
for (int i = 0; i < 3; i++)
|
||||||
_device.DeletePortMap(mapping);
|
_device.DeletePortMapAsync(mapping);
|
||||||
}
|
}
|
||||||
catch (MappingException)
|
catch (MappingException)
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue