Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5138

Useless code in VMTransport class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.9.0
    • 5.10.0
    • Broker
    • None

    Description

      In VMTransport class taskRunner is set to null two times needlessly on the next line and couple of lines below:
      taskRunner = null;
      messageQueue = null;

      if (mq != null)

      { mq.clear(); }

      // Allow pending deliveries to finish up, but don't wait
      // forever in case of an stalled onCommand.
      if (tr != null) {
      try

      { tr.shutdown(TimeUnit.SECONDS.toMillis(1)); }

      catch(Exception e) {
      }
      taskRunner = null;
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            sdcf Yuriy Sidelnikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: