Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    rba9edaa r58bc4e6  
    4747        memset( &global, 0, sizeof( global_t ) );
    4848       
    49         b_main_init();
     49        global.loop = g_main_new( FALSE );
    5050       
    5151        log_init();
     
    117117                log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );
    118118       
    119         b_main_run();
     119        g_main_run( global.loop );
    120120       
    121121        if( global.restart )
     
    165165                       
    166166                        log_message( LOGLVL_ERROR, "SIGTERM received, cleaning up process." );
    167                         b_timeout_add( 1, (b_event_handler) bitlbee_shutdown, NULL );
     167                        g_timeout_add_full( G_PRIORITY_LOW, 1, (GSourceFunc) bitlbee_shutdown, NULL, NULL );
    168168                       
    169169                        first = 0;
Note: See TracChangeset for help on using the changeset viewer.