Skip to content

Commit

Permalink
No need to synchronize fetch
Browse files Browse the repository at this point in the history
The individual RPC clients are synchronized, and we can safely talk
to more than one client at the same time.
  • Loading branch information
brunchboy committed Nov 27, 2018
1 parent 2d25113 commit 9af02fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private DirOpResBody find (InetAddress player, String mountPath, String filePath
*
* @throws IOException if there is a problem retrieving the file
*/
public synchronized void fetch(InetAddress player, String mountPath, String sourcePath, File destination) throws IOException {
public void fetch(InetAddress player, String mountPath, String sourcePath, File destination) throws IOException {
FileOutputStream outputStream = new FileOutputStream(destination);
try {
// Make sure the file exists on the player, and find its file handle.
Expand Down

0 comments on commit 9af02fa

Please sign in to comment.