File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ class _Connection {
212
212
}
213
213
_completer.complete (response.result);
214
214
}
215
- } catch (e) {
215
+ } catch (e, st ) {
216
216
autoRelease = true ;
217
217
_finishAndReuse ();
218
218
log.fine ("completing with exception: $e " );
219
- _completer.completeError (e);
219
+ if (_completer.isCompleted) {
220
+ throw e;
221
+ }
222
+ _completer.completeError (e, st);
220
223
}
221
224
}
222
225
Original file line number Diff line number Diff line change @@ -100,11 +100,11 @@ class ConnectionPool extends Object with _ConnectionHelpers implements Queriable
100
100
cnx.autoRelease = true ;
101
101
_log.finest ("Logged in on cnx#${cnx .number }" );
102
102
c.complete (cnx);
103
- } catch (e) {
103
+ } catch (e, st ) {
104
104
if (! (e is MySqlException )) {
105
105
_removeConnection (cnx);
106
106
}
107
- c.completeError (e);
107
+ c.completeError (e, st );
108
108
}
109
109
}
110
110
You can’t perform that action at this time.
0 commit comments