Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3492370
D12368.id41191.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12368.id41191.diff
View Options
diff --git a/lib/socket/socket.react.js b/lib/socket/socket.react.js
--- a/lib/socket/socket.react.js
+++ b/lib/socket/socket.react.js
@@ -123,7 +123,7 @@
messageLastReceived: ?number;
reopenConnectionAfterClosing: boolean = false;
initializedWithUserState: ?PreRequestUserState;
- failuresAfterPolicyAcknowledgment: number = 0;
+ initFailureCountAfterPolicyAcknowledgment: number = 0;
openSocket(newStatus: ConnectionStatus) {
if (
@@ -436,7 +436,7 @@
if (!message) {
return;
}
- this.failuresAfterPolicyAcknowledgment = 0;
+ this.initFailureCountAfterPolicyAcknowledgment = 0;
const { inflightRequests } = this.state;
if (!inflightRequests) {
@@ -677,12 +677,12 @@
await this.sendInitialMessage();
} catch (e) {
if (this.props.noDataAfterPolicyAcknowledgment) {
- this.failuresAfterPolicyAcknowledgment++;
+ this.initFailureCountAfterPolicyAcknowledgment++;
} else {
- this.failuresAfterPolicyAcknowledgment = 0;
+ this.initFailureCountAfterPolicyAcknowledgment = 0;
}
- if (this.failuresAfterPolicyAcknowledgment >= 2) {
- this.failuresAfterPolicyAcknowledgment = 0;
+ if (this.initFailureCountAfterPolicyAcknowledgment >= 2) {
+ this.initFailureCountAfterPolicyAcknowledgment = 0;
this.props.showSocketCrashLoopAlert?.();
this.props.dispatch({
type: setActiveSessionRecoveryActionType,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 11:25 PM (20 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2678882
Default Alt Text
D12368.id41191.diff (1 KB)
Attached To
Mode
D12368: [lib] Rename failuresAfterPolicyAcknowledgment to initFailureCountAfterPolicyAcknowledgment
Attached
Detach File
Event Timeline
Log In to Comment