Jelajahi Sumber

Remove connected user from connection state on Logoff

Tal Aloni 8 tahun lalu
induk
melakukan
584ca8da61
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      SMBLibrary/Server/SMBServer.SMB1.cs

+ 2 - 0
SMBLibrary/Server/SMBServer.SMB1.cs

@@ -97,6 +97,8 @@ namespace SMBLibrary.Server
                 }
                 else if (command is LogoffAndXRequest)
                 {
+                    // FIXME: Remove connected trees that the user has connected to
+                    state.RemoveConnectedUser(header.UID);
                     return new LogoffAndXResponse();
                 }
                 else if (state.IsTreeConnected(header.TID))