File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 33
33
#include "pcloudcrypto.h"
34
34
#include "ptree.h"
35
35
#include "ptasks.h"
36
+ #include "pstatus.h"
36
37
#include <string.h>
37
38
#include <ctype.h>
38
39
@@ -741,8 +742,17 @@ static psync_path_status_t rdunlock_return(psync_path_status_t st) {
741
742
}
742
743
743
744
static psync_path_status_t rdunlock_return_in_prog () {
745
+ static const uint32_t requiredstatuses []= {
746
+ PSTATUS_COMBINE (PSTATUS_TYPE_RUN , PSTATUS_RUN_RUN ),
747
+ PSTATUS_COMBINE (PSTATUS_TYPE_ONLINE , PSTATUS_ONLINE_CONNECTING |PSTATUS_ONLINE_SCANNING |PSTATUS_ONLINE_ONLINE ),
748
+ PSTATUS_COMBINE (PSTATUS_TYPE_ACCFULL , PSTATUS_ACCFULL_QUOTAOK ),
749
+ PSTATUS_COMBINE (PSTATUS_TYPE_DISKFULL , PSTATUS_DISKFULL_OK )
750
+ };
744
751
psync_sql_rdunlock ();
745
- return PSYNC_PATH_STATUS_IN_PROG ;
752
+ if (psync_statuses_ok_array (requiredstatuses , ARRAY_SIZE (requiredstatuses )))
753
+ return PSYNC_PATH_STATUS_IN_PROG ;
754
+ else
755
+ return PSYNC_PATH_STATUS_PAUSED ; //TODO: fix to return proper status
746
756
}
747
757
748
758
static psync_path_status_t psync_path_status_drive_folder_locked (psync_folderid_t folderid ) {
You can’t perform that action at this time.
0 commit comments