Skip to content

Commit

Permalink
fix(intellij): fix check connection never ends when endpoint left emp…
Browse files Browse the repository at this point in the history
…ty. (#1264)
  • Loading branch information
icycodes authored Jan 22, 2024
1 parent 0a752c3 commit 5166616
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ class ApplicationSettingsPanel {
settings.serverEndpoint = serverEndpoint
settings.serverToken = serverToken
var serverConfig = agentService.getConfig().server
while (serverConfig?.endpoint != serverEndpoint || serverConfig.token != serverToken) {
while (
(serverEndpoint.isNotBlank() && serverConfig?.endpoint != serverEndpoint) ||
(serverToken.isNotBlank() && serverConfig?.token != serverToken)
) {
Thread.sleep(200)
serverConfig = agentService.getConfig().server
}
Expand Down

0 comments on commit 5166616

Please sign in to comment.