- fix
[oweals/gnunet.git] / src / transport / plugin_transport_udp.c
index c57ec98e13626527b2bf7cf919941ccafc3afdbe..885a26b190e330cadb55b038bba753d4949565e2 100644 (file)
@@ -1907,10 +1907,17 @@ process_inbound_tokenized_messages (void *cls, void *client,
   delay = plugin->env->receive (plugin->env->cls,
                                &si->sender,
                                hdr,
-                               (const struct GNUNET_ATS_Information *) &ats, 2,
                                si->session,
                                si->arg,
                                si->args);
+
+  plugin->env->update_address_metrics (plugin->env->cls,
+               &si->sender,
+               si->arg,
+               si->args,
+      si->session,
+                       (struct GNUNET_ATS_Information *) &ats, 2);
+
   si->session->flow_delay_for_other_peer = delay;
   reschedule_session_timeout(si->session);
   return GNUNET_OK;