Skip to content

Commit d098664

Browse files
committed
Do not reconnect to cloud variables on code 4003
1 parent 857dc10 commit d098664

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎src/lib/cloud-provider.js‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,18 @@ class CloudProvider {
9797
}
9898

9999
onClose (e) {
100-
// tw: code 4002 is "Username Error" -- do not try to reconnect
100+
// Code 4002 is "Username Error" -- do not try to reconnect
101101
if (e && e.code === 4002) {
102102
log.info('Cloud username is invalid. Not reconnecting.');
103103
this.onInvalidUsername();
104104
return;
105105
}
106-
// tw: code 4004 is "Project Unavailable" -- do not try to reconnect
106+
// Code 4003 is "Overloaded" -- do not try to reconnect
107+
if (e && e.code === 4003) {
108+
log.info('The server is full. Not reconnecting.');
109+
return;
110+
}
111+
// Code 4004 is "Project Unavailable" -- do not try to reconnect
107112
if (e && e.code === 4004) {
108113
log.info('Cloud variables are disabled for this project. Not reconnecting.');
109114
return;

0 commit comments

Comments
 (0)