MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / close

Method close

src/plugins/sftp/src/com/foxdebug/sftp/Sftp.java:725–745  ·  view source on GitHub ↗
(JSONArray args, CallbackContext callback)

Source from the content-addressed store, hash-verified

723 }
724
725 public void close(JSONArray args, CallbackContext callback) {
726 cordova
727 .getThreadPool()
728 .execute(
729 new Runnable() {
730 public void run() {
731 try {
732 if (ssh != null) {
733 ssh.close();
734 sftp.quit();
735 callback.success();
736 return;
737 }
738 callback.error("Not connected");
739 } catch (IOException | SshException e) {
740 callback.error(errMessage(e));
741 }
742 }
743 }
744 );
745 }
746
747 public void isConnected(JSONArray args, CallbackContext callback) {
748 cordova

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected