diff options
| -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); | 
