| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library mdns.src.lookup_resolver; | 5 library mdns.src.lookup_resolver; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:mdns/src/packet.dart'; | 10 import 'package:mdns/src/packet.dart'; |
| 11 | 11 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 void clearPendingRequests() { | 59 void clearPendingRequests() { |
| 60 while (pendingRequests.isNotEmpty) { | 60 while (pendingRequests.isNotEmpty) { |
| 61 PendingRequest request = pendingRequests.first; | 61 PendingRequest request = pendingRequests.first; |
| 62 request.unlink(); | 62 request.unlink(); |
| 63 request.timer.cancel(); | 63 request.timer.cancel(); |
| 64 request.controller.close(); | 64 request.controller.close(); |
| 65 } | 65 } |
| 66 } | 66 } |
| 67 } | 67 } |
| OLD | NEW |