projects
/
cascardo
/
f2fchat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ping a friend when we get it from the cache
[cascardo/f2fchat.git]
/
friend.c
diff --git
a/friend.c
b/friend.c
index
e3d987f
..
2d317e7
100644
(file)
--- a/
friend.c
+++ b/
friend.c
@@
-113,6
+113,7
@@
int cache_add_friend(struct cache *cache, char *name, char *address, uint16_t po
friend->saddr = G_INET_SOCKET_ADDRESS(g_inet_socket_address_new(addr, friend->port));
g_object_unref(addr);
cache->friends = g_list_append(cache->friends, friend);
+ ping(friend);
return 0;
}