Currently there is a potential issue, especially when using the async SendCommand methods, where two commands could be written to the underlying stream at the same time, causing the message to become garbled. To fix this, a mutex or semaphore could be used to ensure proper concurrent use of the StreamWriter. Consider using TextWriter.Synchronized for this purpose.
Currently there is a potential issue, especially when using the async SendCommand methods, where two commands could be written to the underlying stream at the same time, causing the message to become garbled. To fix this, a mutex or semaphore could be used to ensure proper concurrent use of the StreamWriter. Consider using TextWriter.Synchronized for this purpose.