Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-04-17 03:41:42 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-04-17 03:41:42 +0300
commit245c07d57f395bae53fc54627a785d8db8bbb865 (patch)
treee5a197a2667706c7eb091cb950e2fb3dc97e7826 /Clovershell
parent90b1573694b82da2046476afd9517027d6381a8d (diff)
Last minor fixes
Diffstat (limited to 'Clovershell')
-rw-r--r--Clovershell/ClovershellConnection.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Clovershell/ClovershellConnection.cs b/Clovershell/ClovershellConnection.cs
index 682333f7..1ca67883 100644
--- a/Clovershell/ClovershellConnection.cs
+++ b/Clovershell/ClovershellConnection.cs
@@ -379,16 +379,16 @@ namespace com.clusterrr.clovershell
buff[1] = 0;
buff[2] = 0;
buff[3] = 0;
- epWriter.Write(buff, 0, buff.Length, 1000, out tLen);
+ var r = epWriter.Write(buff, 0, buff.Length, 1000, out tLen);
if (tLen != buff.Length)
- throw new ClovershellException("kill all shell: write error");
+ throw new ClovershellException("kill all shell: write error - " + r.ToString());
buff[0] = (byte)ClovershellCommand.CMD_EXEC_KILL_ALL;
buff[1] = 0;
buff[2] = 0;
buff[3] = 0;
- epWriter.Write(buff, 0, buff.Length, 1000, out tLen);
+ r= epWriter.Write(buff, 0, buff.Length, 1000, out tLen);
if (tLen != buff.Length)
- throw new ClovershellException("kill all exec: write error");
+ throw new ClovershellException("kill all exec: write error - "+r.ToString());
}
internal void writeUsb(ClovershellCommand cmd, byte arg, byte[] data = null, int pos = 0, int l = -1)