diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-06-29 15:16:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-06-29 15:16:37 +0000 |
commit | dcd48df648a5c8bf0a7c01ae30d292868ff49cb7 (patch) | |
tree | d20e87395bed7803b124b199181b74759142d97c /src/transport/gnunet-service-transport_neighbours.c | |
parent | 0b23965be514006764706632a0006a4f2ddb4a4e (diff) | |
download | gnunet-dcd48df648a5c8bf0a7c01ae30d292868ff49cb7.tar.gz gnunet-dcd48df648a5c8bf0a7c01ae30d292868ff49cb7.zip |
- change for mantis 0002445
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 39848f8a3..71245d493 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -772,16 +772,8 @@ free_address (struct NeighbourAddress *na) | |||
772 | { | 772 | { |
773 | GST_validation_set_address_use (na->address, na->session, GNUNET_NO, __LINE__); | 773 | GST_validation_set_address_use (na->address, na->session, GNUNET_NO, __LINE__); |
774 | GNUNET_ATS_address_in_use (GST_ats, na->address, na->session, GNUNET_NO); | 774 | GNUNET_ATS_address_in_use (GST_ats, na->address, na->session, GNUNET_NO); |
775 | GNUNET_ATS_address_destroyed (GST_ats, na->address, na->session); | ||
776 | } | ||
777 | else | ||
778 | { | ||
779 | if (NULL != na->address) | ||
780 | { | ||
781 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "HACK: destroy address\n"); | ||
782 | GNUNET_ATS_address_destroyed (GST_ats, na->address, na->session); | ||
783 | } | ||
784 | } | 775 | } |
776 | |||
785 | na->ats_active = GNUNET_NO; | 777 | na->ats_active = GNUNET_NO; |
786 | if (NULL != na->address) | 778 | if (NULL != na->address) |
787 | { | 779 | { |
@@ -2827,6 +2819,7 @@ GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer, | |||
2827 | break; | 2819 | break; |
2828 | case S_DISCONNECT_FINISHED: | 2820 | case S_DISCONNECT_FINISHED: |
2829 | /* neighbour was freed and plugins told to terminate session */ | 2821 | /* neighbour was freed and plugins told to terminate session */ |
2822 | return GNUNET_NO; | ||
2830 | break; | 2823 | break; |
2831 | default: | 2824 | default: |
2832 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Unhandled state `%s' \n",print_state (n->state)); | 2825 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Unhandled state `%s' \n",print_state (n->state)); |