projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0268d5
)
- fixed state overwriting
author
Bart Polot
<bart@net.in.tum.de>
Thu, 7 Nov 2013 00:01:48 +0000
(
00:01
+0000)
committer
Bart Polot
<bart@net.in.tum.de>
Thu, 7 Nov 2013 00:01:48 +0000
(
00:01
+0000)
src/mesh/gnunet-service-mesh_tunnel.c
patch
|
blob
|
history
diff --git
a/src/mesh/gnunet-service-mesh_tunnel.c
b/src/mesh/gnunet-service-mesh_tunnel.c
index b22981fd8453ae25a8900bbf9062163c52f913f9..4c1eba895705bf632ce651482d340bf315e15c8c 100644
(file)
--- a/
src/mesh/gnunet-service-mesh_tunnel.c
+++ b/
src/mesh/gnunet-service-mesh_tunnel.c
@@
-941,6
+941,7
@@
handle_pong (struct MeshTunnel3 *t,
t->rekey_task = GNUNET_SCHEDULER_NO_TASK;
GNUNET_free (t->kx_ctx);
t->kx_ctx = NULL;
+ t->state = MESH_TUNNEL3_READY;
send_queued_data (t, GNUNET_YES);
send_queued_data (t, GNUNET_NO);
}
@@
-1175,7
+1176,10
@@
GMT_change_state (struct MeshTunnel3* t, enum MeshTunnel3State state)
{
rekey_tunnel (t, NULL);
}
- t->state = state;
+ else
+ {
+ t->state = state;
+ }
if (MESH_TUNNEL3_READY == state && 3 <= GMT_count_connections (t))
{
GMP_stop_search (t->peer);