Server: Bugfix: Collection was modified in a non thread-safe way

This commit is contained in:
Tal Aloni 2019-07-09 10:24:13 +03:00
parent e37e02bbbe
commit efa9499719
2 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved. /* Copyright (C) 2014-2019 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
* *
* You can redistribute this program and/or modify it under the terms of * You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation, * the GNU Lesser Public License as published by the Free Software Foundation,
@ -104,10 +104,10 @@ namespace SMBLibrary.Server
{ {
session.Close(); session.Close();
} }
}
m_sessions.Clear(); m_sessions.Clear();
} }
}
public override List<SessionInformation> GetSessionsInformation() public override List<SessionInformation> GetSessionsInformation()
{ {

View file

@ -1,4 +1,4 @@
/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved. /* Copyright (C) 2014-2019 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
* *
* You can redistribute this program and/or modify it under the terms of * You can redistribute this program and/or modify it under the terms of
* the GNU Lesser Public License as published by the Free Software Foundation, * the GNU Lesser Public License as published by the Free Software Foundation,
@ -82,10 +82,10 @@ namespace SMBLibrary.Server
{ {
session.Close(); session.Close();
} }
}
m_sessions.Clear(); m_sessions.Clear();
} }
}
public override List<SessionInformation> GetSessionsInformation() public override List<SessionInformation> GetSessionsInformation()
{ {