diff --git a/Lidgren.Network/NetPeer.cs b/Lidgren.Network/NetPeer.cs index 26767a5..afd3df5 100644 --- a/Lidgren.Network/NetPeer.cs +++ b/Lidgren.Network/NetPeer.cs @@ -56,7 +56,15 @@ namespace Lidgren.Network /// /// Name of the network thread (if NetPeer.Start has been called) /// - public string NetworkThreadName { get { return (m_networkThread == null ? string.Empty : m_networkThread.Name); } } + public string NetworkThreadName + { + get { return (m_networkThread == null ? string.Empty : m_networkThread.Name); } + set + { + if (m_networkThread != null) + m_networkThread.Name = value; + } + } /// /// Gets a copy of the list of connections