EgorBo / CrossChat-Xamarin.Forms

A chat application implemented using Xamarin.Forms and DDD + MVVM
Apache License 2.0
319 stars 138 forks source link

Racing condition in FileStorage. #2

Open ghost opened 10 years ago

ghost commented 10 years ago

https://github.com/EgorBo/CrossChat-Xamarin.Forms/blob/master/Server/Crosschat.Server.Infrastructure/FileSystem/FileStorage.cs

Lines 42 to 48 of the shared variable _lastPhoto is not thread-safe. Not sure about other pieces of this file.