Committing update from request /scmvfs/service/api/photos.js
check connection state for == 1 which indicates connected