From cb8d8079b402d69f1fa92ccdb5242e117493e174 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 21 May 2014 08:02:38 +0000 Subject: performance API indicates disconnect --- src/dv/gnunet-service-dv.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dv') diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c index a3d6e4942f..67db7072bd 100644 --- a/src/dv/gnunet-service-dv.c +++ b/src/dv/gnunet-service-dv.c @@ -1321,6 +1321,12 @@ handle_ats_update (void *cls, uint32_t distance; enum GNUNET_ATS_Network_Type network = GNUNET_ATS_NET_UNSPECIFIED; + if (NULL == address) + { + /* ATS service temporarily disconnected */ + return; + } + if (GNUNET_NO == active) return; distance = get_atsi_distance (ats, ats_count); -- cgit v1.2.3-18-g5258