{"action":"closed","issue":{"url":"https://api.github.com/repos/spark/particle-cli/issues/47","labels_url":"https://api.github.com/repos/spark/particle-cli/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/spark/particle-cli/issues/47/comments","events_url":"https://api.github.com/repos/spark/particle-cli/issues/47/events","html_url":"https://github.com/spark/particle-cli/issues/47","id":90278660,"number":47,"title":"CLI exits when selecting from multiple devices to setup","user":{"login":"brycekahle","id":1010430,"avatar_url":"https://avatars.githubusercontent.com/u/1010430?v=3","gravatar_id":"","url":"https://api.github.com/users/brycekahle","html_url":"https://github.com/brycekahle","followers_url":"https://api.github.com/users/brycekahle/followers","following_url":"https://api.github.com/users/brycekahle/following{/other_user}","gists_url":"https://api.github.com/users/brycekahle/gists{/gist_id}","starred_url":"https://api.github.com/users/brycekahle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brycekahle/subscriptions","organizations_url":"https://api.github.com/users/brycekahle/orgs","repos_url":"https://api.github.com/users/brycekahle/repos","events_url":"https://api.github.com/users/brycekahle/events{/privacy}","received_events_url":"https://api.github.com/users/brycekahle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spark/particle-cli/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-23T03:44:43Z","updated_at":"2015-08-18T00:52:18Z","closed_at":"2015-08-18T00:52:18Z","body":"version 1.5.11\r\n\r\nRan `particle setup` with two photons connected. Failed right after I selected one of them when prompted.\r\n\r\n```\r\n> Setup is easy! Let's get started...\r\n> It appears as though you are already logged in as bryce@particle.io\r\n? Would you like to log in with a different account? No\r\n\r\n! PROTIP: Hold the MODE/SETUP button on your device until it blinks blue!\r\n! PROTIP: Please make sure you are connected to the internet.\r\n\r\n> I have detected a Photon connected via USB.\r\n? Would you like to continue with this one? Yes\r\n! The Photon supports secure Wi-Fi setup. We'll try that first.\r\n\r\n! PROTIP: Wireless setup of Photons works like a wizard!\r\n! PROTIP: We will automagically change the Wi-Fi network to which your computer is connected.\r\n! PROTIP: You may lose your connection to the internet for a moment.\r\n\r\nPotentially unhandled rejection [2] Serial timed out (WARNING: non-Error used)\r\n? Multiple Photons detected nearby. Would you like to select one to setup now? Yes\r\n? Please select which Photons you would like to setup at this time. Photon-B397\r\n\r\n\r\n/Users/bwkahle/.nvm/v0.10.38/lib/node_modules/particle-cli/node_modules/inquirer/node_modules/rx/dist/rx.js:579\r\n    throw e;\r\n          ^\r\nTypeError: Object Photon-B397 has no method 'pop'\r\n    at setup (/Users/bwkahle/.nvm/v0.10.38/lib/node_modules/particle-cli/commands/WirelessCommand/index.js:336:75)\r\n    at PromptUI.multipleAnswers [as completed] (/Users/bwkahle/.nvm/v0.10.38/lib/node_modules/particle-cli/commands/WirelessCommand/index.js:245:16)\r\n    at PromptUI.onCompletion (/Users/bwkahle/.nvm/v0.10.38/lib/node_modules/particle-cli/node_modules/inquirer/lib/ui/prompt.js:69:10)\r\n    at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (/Users/bwkahle/.nvm/v0.10.38/lib/node_modules/particle-cli/node_modules/inquirer/node_modules/rx/dist/rx.js:1793:12)\r\n    at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/Users/bwkahle/.nvm/v0.10.38/lib/node_modules/particle-cli/node_modules/inquirer/node_modules/rx/dist/rx.js:1730:14)\r\n    at AnonymousObserver.tryCatcher (/Users/bwkahle/.nvm/v0.10.38/lib/node_modules/particle-cli/node_modules/inquirer/node_modules/rx/dist/rx.js:567:29)\r\n    at AutoDetachObse%\r\n```"}}