Skip to content

Commit

Permalink
Close the stream afterwards
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Aug 23, 2011
1 parent cec532a commit 724bdf1
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -116,7 +116,9 @@ public IRDFStore importURL(IRDFStore store, String url, IProgressMonitor monitor
"Accept",
"application/xml, application/rdf+xml"
);
importFromStream(store, connection.getInputStream(), null, monitor);
InputStream stream = connection.getInputStream();
importFromStream(store, stream, null, monitor);
stream.close();
return store;
}

Expand Down

0 comments on commit 724bdf1

Please sign in to comment.