Revision 1a3dfbfd trunk/Pithos.Client.WPF/PithosAccount.cs

b/trunk/Pithos.Client.WPF/PithosAccount.cs
152 152
                using (var client = await listener.AcceptTcpClientAsync()
153 153
                                        .WithTimeout(TimeSpan.FromMinutes(5)))
154 154
                {
155

  
156 155
                    using (var stream = client.GetStream())
157 156
                    using (var reader=new StreamReader(stream))
158 157
                    {
159 158
                        var request = await reader.ReadLineAsync();
160
                        if (request == null)
159
                        //BUG
160
                        //TODO: Add proper warnings here if the content is empty, don't just throw an exception
161
                        //This may be a common occurence 
162

  
163
                        if (String.IsNullOrWhiteSpace(request))
161 164
                            throw new Exception("Nothing retrieved");
162 165
                        Log.InfoFormat("[RETRIEVE] Got Connection {0}", request);
163 166

  

Also available in: Unified diff