Changeset 4054 for neercs


Ignore:
Timestamp:
Nov 27, 2009, 11:53:58 PM (10 years ago)
Author:
Pascal Terjan
Message:
  • Don't leave dead sockets
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/screen_list.c

    r4048 r4054  
    160160   
    161161    if (screen_list->socket_path[SOCK_SERVER])
     162    {
     163        /* FIXME test that we are the server */
     164        if (!screen_list->dp)
     165            unlink(screen_list->socket_path[SOCK_SERVER]);
    162166        free(screen_list->socket_path[SOCK_SERVER]);
     167    }
    163168   
    164169    if (screen_list->socket_path[SOCK_CLIENT])
    165170    {
    166         unlink(screen_list->socket_path[SOCK_CLIENT]);
     171        /* FIXME test that we are the client */
     172        if (screen_list->dp)
     173
     174            unlink(screen_list->socket_path[SOCK_CLIENT]);
    167175        free(screen_list->socket_path[SOCK_CLIENT]);
    168176    }
Note: See TracChangeset for help on using the changeset viewer.