B2G/gecko/services/common/modules-testing/storageserver.js
/**
   * Stop the StorageServer's HTTP server.
   *
   * @param cb
   *        A callback function. Invoked after the server has been stopped.
   *
   */
Stop the StorageServer's HTTP server.
@param cb
A callback function. Invoked after the server has been stopped.
Stop the StorageServer ' s HTTP server . @param cb A callback function . Invoked after the server has been stopped .
function stop(cb) {
    if (!this.started) {
      this._log.warn("StorageServer: Warning: server not running. Can't stop " +
                     "me now!");
      return;
    }
    this.server.stop(cb);
    this.started = false;
  }
function stop ( cb ) { if ( ! this . started ) { this . _log . warn ( "StorageServer: Warning: server not running. Can't stop " + "me now!" ) ; return ; } this . server . stop ( cb ) ; this . started = false ; }
Stop the StorageServer's HTTP server.
Stop the StorageServer ' s HTTP server .