Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Pause/Resume of WatchOp
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Sep 8, 2014
1 parent 512a45a commit 8ed9029
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,13 @@ public void onRequestReceived(FolderRequest folderRequest) {

try {
if (!watchOperation.isSyncRunning() && !watchOperation.isSyncRequested()) {
watchOperation.pause();

FolderRequestHandler handler = FolderRequestHandler.createFolderRequestHandler(folderRequest, config);
Response response = handler.handleRequest(folderRequest);
eventBus.post(response);

watchOperation.resume();
}
else {
logger.log(Level.WARNING, "FolderRequest discarded : ", folderRequest);
Expand Down

0 comments on commit 8ed9029

Please sign in to comment.