Explorar el Código

Return empty port when service undefined

Yentl Van Tendeloo hace 8 años
padre
commit
552b912104
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      bootstrap/services.alc

+ 4 - 0
bootstrap/services.alc

@@ -68,6 +68,10 @@ Element function comm_get(comm : String):
 String function comm_connect(service : String):
 	// Connect to an existing service
 	service = get_service_id(service)
+
+	if (service == ""):
+		return ""!
+
 	service = read_attribute(core, service, "port")
 
 	String port