File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/bolt-connection/src/connection-provider Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ export default class PooledConnectionProvider extends ConnectionProvider {
71
71
*/
72
72
_createConnection ( address , release ) {
73
73
return this . _createChannelConnection ( address ) . then ( connection => {
74
- connection . _firstUsage = true
75
74
connection . _release = ( ) => {
76
- connection . _firstUsage = false
77
75
return release ( address , connection )
78
76
}
79
77
this . _openConnections [ connection . id ] = connection
@@ -123,7 +121,7 @@ export default class PooledConnectionProvider extends ConnectionProvider {
123
121
const connection = await this . _connectionPool . acquire ( address )
124
122
const serverInfo = new ServerInfo ( connection . server , connection . protocol ( ) . version )
125
123
try {
126
- if ( ! connection . _firstUsage && ! connection . protocol ( ) . isLastMessageLogin ( ) ) {
124
+ if ( ! connection . protocol ( ) . isLastMessageLogin ( ) ) {
127
125
await connection . resetAndFlush ( )
128
126
}
129
127
} finally {
You can’t perform that action at this time.
0 commit comments