Commits

John Peberdy  committed bae889e

Fix Servers not becoming available after a command doesn't finish correctly:
https://bitbucket.org/mercurialeclipse/main/issue/363/deadlock-in-properties-view-showing

  • Participants
  • Parent commits bcec9d8

Comments (0)

Files changed (2)

File src/main/java/com/aragost/javahg/Changeset.java

             }
         } catch (IOException e) {
             throw new RuntimeIOException(e);
+        } finally {
+        	try {
+				stream.consumeAll();
+			} catch (IOException e) {
+				throw new RuntimeIOException(e);
+			}
         }
         return result;
     }
                 }
             } catch (IOException e) {
                 throw new RuntimeIOException(e);
+            } finally {
+            	try {
+					stream.consumeAll();
+				} catch (IOException e) {
+					throw new RuntimeIOException(e);
+				}
             }
         }
 

File src/main/java/com/aragost/javahg/Repository.java

             }
         } catch (IOException e) {
             throw new RuntimeIOException(e);
+        } finally {
+        	try {
+				stream.consumeAll();
+			} catch (IOException e) {
+				throw new RuntimeIOException(e);
+			}
         }
 
         return result;