Changeset 3578 for trunk/rms

Show
Ignore:
Timestamp:
07/09/03 18:03:11 (5 years ago)
Author:
dreamforce2
Message:

bugfix. don't crash but quit with a warning if desired port for tcp server is already in use.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rms/src/rms.cpp

    r3577 r3578  
    189189  else 
    190190  { 
    191     server->StartServer(nPort); 
     191    if (!server->StartServer(nPort)) 
     192    { 
     193      gLog.Error("Could not start server on port %u, " 
     194                 "maybe this port is already in use?\n", nPort); 
     195      printf("Could not start server on port %u, " 
     196             "maybe this port is already in use?\n", nPort); 
     197      return 1; 
     198    }; 
    192199  } 
    193200