private void LogError(string message) { if (logger != null) { logger.Error(message); } }
public bool Connect(IPAddress address, int port) { lock (connectionMutex) { if (client.Connect(address, port)) { logger.Debug("Connected to FS"); return(true); } logger.Error("Unable to connect to server."); return(false); } }