Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ping call more error tolerant #320

Merged
merged 3 commits into from May 22, 2017
Merged

Conversation

Ivansss
Copy link
Member

@Ivansss Ivansss commented May 18, 2017

No description provided.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine by me

js/rooms.js Outdated
}).fail(function(xhr, status, error) {
// If there is an error when pinging, retry for 3 times.
if (xhr.status !== 404 && pingFails < 3) {
pingFails ++;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove space

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
@codecov
Copy link

codecov bot commented May 22, 2017

Codecov Report

Merging #320 into master will increase coverage by 0.15%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #320      +/-   ##
============================================
+ Coverage     15.46%   15.62%   +0.15%     
  Complexity      274      274              
============================================
  Files            18       18              
  Lines          1293     1293              
============================================
+ Hits            200      202       +2     
+ Misses         1093     1091       -2
Impacted Files Coverage Δ Complexity Δ
lib/AppInfo/Application.php 100% <0%> (+100%) 1% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 976efb4...4bf9dce. Read the comment docs.

js/rooms.js Outdated
).fail(function() {
).done(function() {
pingFails = 0;
}).fail(function(xhr, status, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unused error

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
@nickvergessen nickvergessen merged commit 0235555 into master May 22, 2017
@nickvergessen nickvergessen deleted the ping-fail-tolerant branch May 22, 2017 10:23
marcoambrosini pushed a commit that referenced this pull request Oct 9, 2019
AppNavigationNew: fix type of buttonClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants