Subversion Repositories SmartDukaan

Rev

Rev 10365 | Rev 10969 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10365 Rev 10366
Line 980... Line 980...
980
				}
980
				}
981
			}
981
			}
982
			int retry = 5;
982
			int retry = 5;
983
			boolean feedsuccess =false;
983
			boolean feedsuccess =false;
984
			while(retry>0){
984
			while(retry>0){
-
 
985
				Thread.sleep(5*60*1000);
985
				try {
986
				try {
986
					lastUpdatedInventoryTime = lastSentInventoryTime; 
987
					lastUpdatedInventoryTime = lastSentInventoryTime; 
987
					fetchinventoryhistoryfromsnapdeal();
988
					fetchinventoryhistoryfromsnapdeal();
988
				} catch (UnsupportedEncodingException e1) {
989
				} catch (UnsupportedEncodingException e1) {
989
					System.out.println("Error while fetching inventory update result");
990
					System.out.println("Error while fetching inventory update result");
Line 991... Line 992...
991
				}
992
				}
992
				if(inventoryhistoryItemMap.entrySet().size()==iterator -1){
993
				if(inventoryhistoryItemMap.entrySet().size()==iterator -1){
993
					feedsuccess = true;
994
					feedsuccess = true;
994
					break;
995
					break;
995
				}
996
				}
996
				Thread.sleep(5*60*1000);
-
 
997
				retry --;
997
				retry --;
998
			}
998
			}
999
			String PANEL_TEXT_MAIL = "";
999
			String PANEL_TEXT_MAIL = "";
1000
			if(PANEL){
1000
			if(PANEL){
1001
				PANEL_TEXT_MAIL = " (Using Panel)";
1001
				PANEL_TEXT_MAIL = " (Using Panel)";