mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
#30 fix: context.pop()
This commit is contained in:
@@ -30,8 +30,10 @@ enum GenSSHClientStatus {
|
||||
pwd,
|
||||
}
|
||||
|
||||
Future<SSHClient> genClient(ServerPrivateInfo spi,
|
||||
{void Function(GenSSHClientStatus)? onStatus}) async {
|
||||
Future<SSHClient> genClient(
|
||||
ServerPrivateInfo spi, {
|
||||
void Function(GenSSHClientStatus)? onStatus,
|
||||
}) async {
|
||||
final onStatus_ = onStatus ?? (_) {};
|
||||
onStatus_(GenSSHClientStatus.socket);
|
||||
final socket = await SSHSocket.connect(
|
||||
|
||||
Reference in New Issue
Block a user