Browse Source

Bugfix: A second SCSITarget worker thread was being unnecessarily created

Tal Aloni 8 years ago
parent
commit
f9838cede8
2 changed files with 1 additions and 4 deletions
  1. 1 1
      ISCSI/SCSITarget/SCSITarget.cs
  2. 0 3
      ISCSI/SCSITarget/VirtualSCSITarget.cs

+ 1 - 1
ISCSI/SCSITarget/SCSITarget.cs

@@ -38,7 +38,7 @@ namespace SCSI
             workerThread.Start();
         }
 
-        public void ProcessCommandQueue()
+        private void ProcessCommandQueue()
         {
             while (true)
             {

+ 0 - 3
ISCSI/SCSITarget/VirtualSCSITarget.cs

@@ -24,9 +24,6 @@ namespace SCSI
         public VirtualSCSITarget(List<Disk> disks)
         {
             m_disks = disks;
-            Thread workerThread = new Thread(ProcessCommandQueue);
-            workerThread.IsBackground = true;
-            workerThread.Start();
         }
 
         /// <summary>