Browse Source

Bugfix: wrong sender parameter was dispatched to ISCSITarget inquiry event handlers

Tal Aloni 7 years ago
parent
commit
00fb7174f0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      ISCSI/ISCSI.Server/ISCSITarget.cs

+ 3 - 3
ISCSI/ISCSI.Server/ISCSITarget.cs

@@ -56,7 +56,7 @@ namespace ISCSI.Server
             EventHandler<StandardInquiryEventArgs> handler = OnStandardInquiry;
             if (handler != null)
             {
-                handler(sender, args);
+                handler(this, args);
             }
         }
 
@@ -66,7 +66,7 @@ namespace ISCSI.Server
             EventHandler<UnitSerialNumberInquiryEventArgs> handler = OnUnitSerialNumberInquiry;
             if (handler != null)
             {
-                handler(sender, args);
+                handler(this, args);
             }
         }
 
@@ -78,7 +78,7 @@ namespace ISCSI.Server
             EventHandler<DeviceIdentificationInquiryEventArgs> handler = OnDeviceIdentificationInquiry;
             if (handler != null)
             {
-                handler(sender, args);
+                handler(this, args);
             }
         }