From 456cfdd51ad94e001e0364ab66f6957fdf1a1019 Mon Sep 17 00:00:00 2001 From: Tiago Loureiro Date: Thu, 13 Oct 2011 14:21:30 +0300 Subject: [PATCH] Missing break in switch-case statement --- push_version/super_upload.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/push_version/super_upload.js b/push_version/super_upload.js index 48a6df8..8c4b1a6 100644 --- a/push_version/super_upload.js +++ b/push_version/super_upload.js @@ -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); @@ -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!'); }