mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-15 11:43:46 +02:00
Server: Bugfix: Collection was modified in a non thread-safe way
This commit is contained in:
parent
e37e02bbbe
commit
efa9499719
2 changed files with 6 additions and 6 deletions
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue