Changeset 83

Show
Ignore:
Timestamp:
01/13/06 19:21:32 (3 years ago)
Author:
edmanm
Message:

stop() should also return a boolean value indicating whether stopping the
process was succesful or not.

Location:
trunk/src/control
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/control/torcontrol.cpp

    r79 r83  
    6666 
    6767/** Stop the Tor process. */ 
    68 void 
     68bool 
    6969TorControl::stop(QString *errmsg) 
    7070{ 
    71   _torProcess.stop(errmsg); 
     71  return _torProcess.stop(errmsg); 
    7272} 
    7373 
  • trunk/src/control/torcontrol.h

    r78 r83  
    5555 
    5656  /** Stop the Tor process */ 
    57   void stop(QString *errmsg = 0); 
     57  bool stop(QString *errmsg = 0); 
    5858 
    5959  /** Detect if the Tor process is running */