notify performance monitors about destroyed addresses (for #3406)
[oweals/gnunet.git] / src / fs / gnunet-service-fs.c
index 59786bae8162f95d455c496e03e58a50fe7b25e3..a9be400800498cc4dd7d1b2b3d40fd4a0335f5e1 100644 (file)
@@ -254,8 +254,14 @@ update_latencies (void *cls,
   unsigned int i;
   struct GNUNET_TIME_Relative latency;
 
+  if (NULL == address)
+  {
+    /* ATS service temporarily disconnected */
+    return;
+  }
+
   if (GNUNET_YES != active)
-       return;
+    return;
   for (i = 0; i < ats_count; i++)
   {
     if (GNUNET_ATS_QUALITY_NET_DELAY != ntohl (ats[i].type))