Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32221964
D12368.1765200270.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12368.1765200270.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
Mon, Dec 8, 1:24 PM (10 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5848513
Default Alt Text
D12368.1765200270.diff (1 KB)
Attached To
Mode
D12368: [lib] Rename failuresAfterPolicyAcknowledgment to initFailureCountAfterPolicyAcknowledgment
Attached
Detach File
Event Timeline
Log In to Comment