projects
/
cascardo
/
f2fchat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sock_init should be called before loading cache
[cascardo/f2fchat.git]
/
f2fchat.c
diff --git
a/f2fchat.c
b/f2fchat.c
index
854a56e
..
634133c
100644
(file)
--- a/
f2fchat.c
+++ b/
f2fchat.c
@@
-31,9
+31,9
@@
int main(int argc, char **argv)
struct cache *cache;
GMainLoop *loop;
g_type_init();
struct cache *cache;
GMainLoop *loop;
g_type_init();
+ sock_init();
create_cache(&cache);
load_cache(cache, "friends.cache");
create_cache(&cache);
load_cache(cache, "friends.cache");
- sock_init();
loop = g_main_loop_new(g_main_context_default(), TRUE);
g_main_loop_run(loop);
store_cache(cache, "friends.cache");
loop = g_main_loop_new(g_main_context_default(), TRUE);
g_main_loop_run(loop);
store_cache(cache, "friends.cache");