diff options
| author | Leandro Pereira <leandro@hardinfo.org> | 2011-12-30 19:44:31 -0200 | 
|---|---|---|
| committer | Leandro Pereira <leandro@hardinfo.org> | 2011-12-30 19:51:50 -0200 | 
| commit | 6712c6baf3104853707a3ba73f57864063452ae5 (patch) | |
| tree | 1ef1ce503e9c1db242e39df8c3b6a6d9067a3474 | |
| parent | 8b74ec2bb7cda97fba49c2b1039c1b6b749d81b8 (diff) | |
Do not create another server loop if one has been already created previously
| -rw-r--r-- | shell/callbacks.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/shell/callbacks.c b/shell/callbacks.c index 021560e2..88c85587 100644 --- a/shell/callbacks.c +++ b/shell/callbacks.c @@ -99,7 +99,9 @@ void cb_act_as_server()      accepting = shell_action_get_active("ActAsServerAction");      if (accepting) { -       server_loop = g_main_loop_new(NULL, FALSE); +       if (!server_loop) { +          server_loop = g_main_loop_new(NULL, FALSE); +       }         g_idle_add(server_start_helper, server_loop);      } else {         g_main_loop_quit(server_loop); | 
