Skip to content

Commit

Permalink
Missing break in switch-case statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tiago-loureiro committed Oct 13, 2011
1 parent 10ced14 commit 456cfdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion push_version/super_upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function sendMessages() {
break;
case 'url':
sock.emit('url',client.url);
client.state = 'wait-description'
client.state = 'wait-description';
break;
case 'wait-description':
logger.debug('Waiting for description from: ' + sock.sessId);
Expand All @@ -191,6 +191,8 @@ function sendMessages() {
break;
case 'error':
sock.emit('error','An error has ocurred, please try uploading again!');
client.state = 'done';
break;
default:
logger.error('Unknown state!');
}
Expand Down

0 comments on commit 456cfdd

Please sign in to comment.