File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class FileMakerConnection extends Connection
32
32
33
33
protected ?string $ sessionToken = null ;
34
34
35
- protected int $ retries = 1 ;
35
+ protected int $ attempts = 2 ;
36
36
37
37
protected bool $ shouldCacheSessionToken = true ;
38
38
@@ -115,7 +115,7 @@ protected function fetchNewSessionToken()
115
115
];
116
116
117
117
// perform the login
118
- $ response = Http::retry ($ this ->retries , 100 )->withBasicAuth ($ this ->config ['username ' ], $ this ->config ['password ' ])
118
+ $ response = Http::retry ($ this ->attempts , 100 )->withBasicAuth ($ this ->config ['username ' ], $ this ->config ['password ' ])
119
119
->post ($ url , $ postBody );
120
120
121
121
// Check for errors
@@ -690,7 +690,7 @@ protected function prepareRequestForSending($request = null)
690
690
$ request = new PendingRequest ();
691
691
}
692
692
693
- $ request ->retry ($ this ->retries , 100 )->withToken ($ this ->sessionToken );
693
+ $ request ->retry ($ this ->attempts , 100 )->withToken ($ this ->sessionToken );
694
694
695
695
return $ request ;
696
696
}
@@ -791,7 +791,7 @@ protected function getSqlCommandType($method, $url)
791
791
792
792
public function setRetries ($ retries )
793
793
{
794
- $ this ->retries = $ retries ;
794
+ $ this ->attempts = $ retries + 1 ;
795
795
796
796
return $ this ;
797
797
}
You can’t perform that action at this time.
0 commit comments